Ld75's picture
Update app.py
ac744bd
raw
history blame
246 Bytes
#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")