Spaces:
Runtime error
Runtime error
on1onmangoes
commited on
Commit
•
1d48696
1
Parent(s):
746bccf
Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,10 @@ import gradio as gr
|
|
32 |
|
33 |
def transcribe(audio_path, num_speakers=2):
|
34 |
# Configure the pipeline to use the provided number of speakers
|
35 |
-
diarization_pipeline.n_speakers = num_speakers
|
36 |
|
37 |
# Run diarization
|
38 |
-
diarization = diarization_pipeline(audio_path)
|
39 |
|
40 |
return diarization
|
41 |
|
|
|
32 |
|
33 |
def transcribe(audio_path, num_speakers=2):
|
34 |
# Configure the pipeline to use the provided number of speakers
|
35 |
+
#diarization_pipeline.n_speakers = num_speakers
|
36 |
|
37 |
# Run diarization
|
38 |
+
diarization = diarization_pipeline(audio_path,num_speakers=2)
|
39 |
|
40 |
return diarization
|
41 |
|