Update modules/whisper/whisper_base.py
Browse files
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()
|