LAP-DEV commited on
Commit
6c03439
·
verified ·
1 Parent(s): 00bec5b

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +3 -3
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:{html_single_tab}{info["lang"]} (probability {info["lang_prob"]}%)'
413
- if params.is_translate: title_line += f'{html_newline}{html_multi_tab}Translation:{html_single_tab}{info["transcription"]} (Handled by OpenAI Whisper)'
414
- if translate_output: title_line += f'{html_newline}{html_multi_tab}Translation:{html_single_tab}{info["translation"]} (Handled by Facebook NLLB)'
415
 
416
  if info["subtitle"] == "":
417
  info["subtitle"] = "(No speech detected)"
 
409
  html_single_tab = "&nbsp;"
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)"