Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -223,6 +223,7 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_spe
|
|
223 |
'Speaker': [],
|
224 |
'Text': []
|
225 |
}
|
|
|
226 |
for (i, segment) in enumerate(segments):
|
227 |
if i == 0 or segments[i - 1]["speaker"] != segment["speaker"]:
|
228 |
objects['Start'].append(str(time(segment["start"])))
|
|
|
223 |
'Speaker': [],
|
224 |
'Text': []
|
225 |
}
|
226 |
+
text = ''
|
227 |
for (i, segment) in enumerate(segments):
|
228 |
if i == 0 or segments[i - 1]["speaker"] != segment["speaker"]:
|
229 |
objects['Start'].append(str(time(segment["start"])))
|