Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -415,7 +415,7 @@ class WhisperBase(ABC):
|
|
415 |
if translate_output: title_line += f'{html_newline}{html_multi_tab}<B>Translation:</B>{html_single_tab}{info["translation"]} (Handled by Facebook NLLB)'
|
416 |
|
417 |
if info["subtitle"] == "":
|
418 |
-
info["subtitle"] = "(No speech detected)"
|
419 |
|
420 |
total_result += title_line+"\n"+f'{info["subtitle"]}'
|
421 |
total_time += info["time_for_task"]
|
|
|
415 |
if translate_output: title_line += f'{html_newline}{html_multi_tab}<B>Translation:</B>{html_single_tab}{info["translation"]} (Handled by Facebook NLLB)'
|
416 |
|
417 |
if info["subtitle"] == "":
|
418 |
+
info["subtitle"] = "(No speech detected)\n"
|
419 |
|
420 |
total_result += title_line+"\n"+f'{info["subtitle"]}'
|
421 |
total_time += info["time_for_task"]
|