Cahlil-Togonon
commited on
Commit
·
de18ebe
1
Parent(s):
6ae9730
updated app and requirement files, added packages.txt
Browse files- app.py +3 -3
- packages.txt +1 -0
- requirements.txt +0 -1
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
from pyannote.audio import Pipeline
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
-
def diarization():
|
5 |
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
|
6 |
-
output = pipeline(
|
7 |
answer = ""
|
8 |
for turn, _, speaker in output.itertracks(yield_label=True):
|
9 |
answer += "{} said something starting from {} and ends on {}\n".format(speaker,turn.start,turn.end)
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from pyannote.audio import Pipeline
|
3 |
|
4 |
+
def diarization(audio):
|
5 |
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")
|
6 |
+
output = pipeline(audio)
|
7 |
answer = ""
|
8 |
for turn, _, speaker in output.itertracks(yield_label=True):
|
9 |
answer += "{} said something starting from {} and ends on {}\n".format(speaker,turn.start,turn.end)
|
packages.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
libsndfile1
|
requirements.txt
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
libsndfile1
|
2 |
https://github.com/pyannote/pyannote-audio/archive/develop.zip
|
|
|
|
|
1 |
https://github.com/pyannote/pyannote-audio/archive/develop.zip
|