YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co./docs/hub/model-cards#model-card-metadata)
from pyannote.audio import Model, Inference
model = Model.from_pretrained("pyannote/embedding") inference = Inference(model)
inference on the whole file
inference("file.wav")
inference on an excerpt
from pyannote.core import Segment excerpt = Segment(start=2.0, end=5.0) inference.crop("file.wav", excerpt)