Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -412,10 +412,8 @@ class WhisperBase(ABC):
|
|
412 |
title_line = f'{html_multi_tab}<B>Media file:</B>{html_single_tab}{info["input_source_file"]}'
|
413 |
title_line += f'{html_newline}{html_multi_tab}<B>Language:</B>{html_single_tab}{info["lang"]} (probability {info["lang_prob"]}%)'
|
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 |
-
#title_line = "<p style='background-color:#F0F0F0;border-radius:10px;padding:5px'>" + title_line + "</p>"
|
418 |
-
title_line = "<p id='md_preview'>" + title_line + "</p>"
|
419 |
|
420 |
if info["subtitle"].strip() == "":
|
421 |
info["subtitle"] = "(No speech detected)\n"
|
|
|
412 |
title_line = f'{html_multi_tab}<B>Media file:</B>{html_single_tab}{info["input_source_file"]}'
|
413 |
title_line += f'{html_newline}{html_multi_tab}<B>Language:</B>{html_single_tab}{info["lang"]} (probability {info["lang_prob"]}%)'
|
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 |
+
title_line = "<p id='md_preview_title'>" + title_line + "</p>"
|
|
|
|
|
417 |
|
418 |
if info["subtitle"].strip() == "":
|
419 |
info["subtitle"] = "(No speech detected)\n"
|