LAP-DEV commited on
Commit
1032900
·
verified ·
1 Parent(s): 2601f16

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +2 -2
modules/whisper/whisper_base.py CHANGED
@@ -413,8 +413,8 @@ class WhisperBase(ABC):
413
  tabbed_space = ("\t")*3
414
  title_line += f'{tabbed_space}Media file:\t{info["input_source_file"]}'
415
  title_line += f'\n{tabbed_space}Language:\t{info["lang"]} (probability {info["lang_prob"]}%)'
416
- if params.is_translate: title_line += f'\n{(tabbed_space}Translation:\t{info["transcription"]} (Handled by OpenAI Whisper)'
417
- if translate_output: title_line += f'\n{(tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'
418
 
419
  total_result += title_line+"#NEWLINE#"+(((info["subtitle"].rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
420
  total_time += info["time_for_task"]
 
413
  tabbed_space = ("\t")*3
414
  title_line += f'{tabbed_space}Media file:\t{info["input_source_file"]}'
415
  title_line += f'\n{tabbed_space}Language:\t{info["lang"]} (probability {info["lang_prob"]}%)'
416
+ if params.is_translate: title_line += f'\n{tabbed_space}Translation:\t{info["transcription"]} (Handled by OpenAI Whisper)'
417
+ if translate_output: title_line += f'\n{tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'
418
 
419
  total_result += title_line+"#NEWLINE#"+(((info["subtitle"].rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
420
  total_time += info["time_for_task"]