Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -411,7 +411,7 @@ class WhisperBase(ABC):
|
|
| 411 |
|
| 412 |
# Add filename & info as first line
|
| 413 |
tabbed_space = ("\t")*3
|
| 414 |
-
title_line
|
| 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)'
|
|
|
|
| 411 |
|
| 412 |
# Add filename & info as first line
|
| 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)'
|