LAP-DEV commited on
Commit
417bd18
·
verified ·
1 Parent(s): 3e4d70b

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +1 -1
modules/whisper/whisper_base.py CHANGED
@@ -420,7 +420,7 @@ class WhisperBase(ABC):
420
  if translate_output: title_line += f'\n{tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'
421
  title_line += "#NEWLINE#"
422
 
423
- total_result += title_line+((info["subtitle"].replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
424
  total_time += info["time_for_task"]
425
 
426
  time_end = datetime.now()
 
420
  if translate_output: title_line += f'\n{tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'
421
  title_line += "#NEWLINE#"
422
 
423
+ total_result += title_line+(((info["subtitle"].rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
424
  total_time += info["time_for_task"]
425
 
426
  time_end = datetime.now()