Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,6 +254,9 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, min_num
|
|
254 |
if min_num_speakers > max_number_speakers:
|
255 |
min_speakers = max_number_speakers
|
256 |
max_speakers = min_num_speakers
|
|
|
|
|
|
|
257 |
score_num_speakers = {}
|
258 |
|
259 |
for num_speakers in range(min_speakers, max_speakers+1):
|
|
|
254 |
if min_num_speakers > max_number_speakers:
|
255 |
min_speakers = max_number_speakers
|
256 |
max_speakers = min_num_speakers
|
257 |
+
else:
|
258 |
+
min_speakers = min_num_speakers
|
259 |
+
max_speakers = max_number_speakers
|
260 |
score_num_speakers = {}
|
261 |
|
262 |
for num_speakers in range(min_speakers, max_speakers+1):
|