Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -414,6 +414,8 @@ 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"].strip() == "":
|
| 418 |
info["subtitle"] = "(No speech detected)\n"
|
| 419 |
|
|
|
|
| 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='bckground-color:powderblue;'>" + title_line + "</p>"
|
| 418 |
+
|
| 419 |
if info["subtitle"].strip() == "":
|
| 420 |
info["subtitle"] = "(No speech detected)\n"
|
| 421 |
|