Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -414,7 +414,7 @@ class WhisperBase(ABC):
|
|
| 414 |
if params.is_translate: title_line += f'{html_newline}{html_multi_tab}<B>Translation:</B>{html_single_tab}{info["transcription"]} (Handled by OpenAI Whisper)'
|
| 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"]}'
|
|
|
|
| 414 |
if params.is_translate: title_line += f'{html_newline}{html_multi_tab}<B>Translation:</B>{html_single_tab}{info["transcription"]} (Handled by OpenAI Whisper)'
|
| 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"].strip() == "":
|
| 418 |
info["subtitle"] = "(No speech detected)\n"
|
| 419 |
|
| 420 |
total_result += title_line+"\n"+f'{info["subtitle"]}'
|