File size: 246 Bytes
ac744bd
 
 
 
 
5d81cd6
ac744bd
 
1
2
3
4
5
6
7
8
#import gradio as gr
#gr.Interface.load("models/pyannote/speaker-diarization").launch()
from pyannote.audio import Pipeline
  
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")

# inference on the whole file
pipeline("file.wav")