load static method

Pyannote load(
  1. String path
)

Implementation

static Pyannote load(String path) {
  if (path.trim().isEmpty) throw ArgumentError.value(path, 'path');
  final current = _instance;
  if (current != null && current.modelPath != path) {
    throw StateError('Pyannote is already loaded from ${current.modelPath}');
  }
  _instance ??= getPyannote(path);
  return _instance!;
}