Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -408,12 +408,12 @@ class WhisperBase(ABC):
|
|
408 |
|
409 |
# Add filename & info as first line
|
410 |
tabbed_space = ("\t")*3
|
411 |
-
title_line = f'{tabbed_space}Media file:\t{info["input_source_file"]}'
|
412 |
title_line += f'\n{tabbed_space}Language:\t{info["lang"]} (probability {info["lang_prob"]}%)'
|
413 |
if params.is_translate: title_line += f'\n{tabbed_space}Translation:\t{info["transcription"]} (Handled by OpenAI Whisper)'
|
414 |
if translate_output: title_line += f'\n{tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'
|
415 |
|
416 |
-
total_result +=
|
417 |
total_time += info["time_for_task"]
|
418 |
|
419 |
time_end = datetime.now()
|
|
|
408 |
|
409 |
# Add filename & info as first line
|
410 |
tabbed_space = ("\t")*3
|
411 |
+
title_line = f'🔊{tabbed_space}Media file:\t{info["input_source_file"]}'
|
412 |
title_line += f'\n{tabbed_space}Language:\t{info["lang"]} (probability {info["lang_prob"]}%)'
|
413 |
if params.is_translate: title_line += f'\n{tabbed_space}Translation:\t{info["transcription"]} (Handled by OpenAI Whisper)'
|
414 |
if translate_output: title_line += f'\n{tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'
|
415 |
|
416 |
+
total_result += title_line+"#NEWLINE#"+(((info["subtitle"].rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
|
417 |
total_time += info["time_for_task"]
|
418 |
|
419 |
time_end = datetime.now()
|