Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
1 |
-
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
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")
|