Ld75 commited on
Commit
ac744bd
·
1 Parent(s): 3cb4eb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,3 +1,8 @@
1
- import gradio as gr
 
 
 
 
2
 
3
- gr.Interface.load("models/pyannote/speaker-diarization").launch()
 
 
1
+ #import gradio as gr
2
+ #gr.Interface.load("models/pyannote/speaker-diarization").launch()
3
+ from pyannote.audio import Pipeline
4
+
5
+ pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
6
 
7
+ # inference on the whole file
8
+ pipeline("file.wav")