Open
Description
Opening an issue as per @osanseviero's suggestion on Twitter.
Issue imported from pyannote/pyannote-audio#835
pyannote.audio 2.0 will bring a unified pipeline API:
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
output = pipeline("audio.wav") # or pipeline({"waveform": np.ndarray, "sample_rate": int})
where output
is a pyannote.core.Annotation
instance.
I just created a space that allows to test a bunch of pipelines shared on Hugginface Hub but it would be nice if those were testable directly in their own model card.
My understanding is that two things needs to happen
- pyannote pipeline support must be added to Hugginface Inference API
- a new widget (based on wavesurfer.js like the aforementioned space?) must be added to the list of Huggingface widgets