Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -57,10 +57,22 @@ def diarize_audio(temp_file, num_speakers, min_speakers, max_speakers):
|
|
57 |
return str(diarization)
|
58 |
|
59 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
audio_input = gr.Audio(type="filepath", label="Upload Audio")
|
61 |
-
num_speakers_input = gr.Number(label="Number of Speakers", value=0)
|
62 |
-
min_speakers_input = gr.Number(label="Minimum Number of Speakers", value=0)
|
63 |
-
max_speakers_input = gr.Number(label="Maximum Number of Speakers", value=0)
|
64 |
process_button = gr.Button("Process")
|
65 |
diarization_output = gr.Textbox(label="Diarization Output")
|
66 |
|
|
|
57 |
return str(diarization)
|
58 |
|
59 |
with gr.Blocks() as demo:
|
60 |
+
gr.Markdown("""
|
61 |
+
# 🗣️Pyannote Speaker Diarization 3.1🗣️
|
62 |
+
|
63 |
+
This model takes an audio file as input and outputs the diarization of the speakers in the audio.
|
64 |
+
|
65 |
+
Please upload an audio file and adjust the parameters as needed.
|
66 |
+
|
67 |
+
The maximum length of the audio file it can process is around **35-40 minutes**.
|
68 |
+
|
69 |
+
If you find this space helpful, please ❤ it.
|
70 |
+
|
71 |
+
""")
|
72 |
audio_input = gr.Audio(type="filepath", label="Upload Audio")
|
73 |
+
num_speakers_input = gr.Number(label="Number of Speakers (The maximum number of speakers to detect)", value=0)
|
74 |
+
min_speakers_input = gr.Number(label="Minimum Number of Speakers (The maximum number of speakers to detect)", value=0)
|
75 |
+
max_speakers_input = gr.Number(label="Maximum Number of Speakers (The maximum number of speakers to detect)", value=0)
|
76 |
process_button = gr.Button("Process")
|
77 |
diarization_output = gr.Textbox(label="Diarization Output")
|
78 |
|