Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -409,9 +409,9 @@ class WhisperBase(ABC):
|
|
409 |
html_single_tab = " "
|
410 |
html_newline = "<BR>"
|
411 |
title_line = f'{html_multi_tab}<B>Media file:</B>{html_single_tab}{info["input_source_file"]}'
|
412 |
-
title_line += f'{html_newline}{html_multi_tab}Language
|
413 |
-
if params.is_translate: title_line += f'{html_newline}{html_multi_tab}Translation
|
414 |
-
if translate_output: title_line += f'{html_newline}{html_multi_tab}Translation
|
415 |
|
416 |
if info["subtitle"] == "":
|
417 |
info["subtitle"] = "(No speech detected)"
|
|
|
409 |
html_single_tab = " "
|
410 |
html_newline = "<BR>"
|
411 |
title_line = f'{html_multi_tab}<B>Media file:</B>{html_single_tab}{info["input_source_file"]}'
|
412 |
+
title_line += f'{html_newline}{html_multi_tab}<B>Language:</B>{html_single_tab}{info["lang"]} (probability {info["lang_prob"]}%)'
|
413 |
+
if params.is_translate: title_line += f'{html_newline}{html_multi_tab}<B>Translation:</B>{html_single_tab}{info["transcription"]} (Handled by OpenAI Whisper)'
|
414 |
+
if translate_output: title_line += f'{html_newline}{html_multi_tab}<B>Translation:</B>{html_single_tab}{info["translation"]} (Handled by Facebook NLLB)'
|
415 |
|
416 |
if info["subtitle"] == "":
|
417 |
info["subtitle"] = "(No speech detected)"
|