Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -335,19 +335,19 @@ class WhisperBase(ABC):
|
|
335 |
for file_name, info in files_info.items():
|
336 |
total_result += f'{info["subtitle"]}'
|
337 |
total_time += info["time_for_task"]
|
338 |
-
total_info += f'Input file:\t
|
339 |
|
340 |
if params.is_translate:
|
341 |
-
total_info += f'Translation:\t
|
342 |
|
343 |
if translate_output:
|
344 |
-
total_info += f'Translation:\t
|
345 |
|
346 |
time_end = datetime.now()
|
347 |
total_info += f"\nTotal processing time: {self.format_time((time_end-time_start).total_seconds())}"
|
348 |
|
349 |
if params.is_translate or translate_output:
|
350 |
-
total_info += "\n\nβ\tUsing OpenAI Whisper\nββ\tUsing Facebook NLLB"
|
351 |
|
352 |
result_str = total_result.rstrip("\n")
|
353 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
|
|
335 |
for file_name, info in files_info.items():
|
336 |
total_result += f'{info["subtitle"]}'
|
337 |
total_time += info["time_for_task"]
|
338 |
+
total_info += f'Input file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
|
339 |
|
340 |
if params.is_translate:
|
341 |
+
total_info += f'Translation:\t{info["transcription"]} β\n'
|
342 |
|
343 |
if translate_output:
|
344 |
+
total_info += f'Translation:\t{info["translation"]} ββ\n'
|
345 |
|
346 |
time_end = datetime.now()
|
347 |
total_info += f"\nTotal processing time: {self.format_time((time_end-time_start).total_seconds())}"
|
348 |
|
349 |
if params.is_translate or translate_output:
|
350 |
+
total_info += "\n\nβ\t\t\tUsing OpenAI Whisper\nββ\t\t\tUsing Facebook NLLB"
|
351 |
|
352 |
result_str = total_result.rstrip("\n")
|
353 |
result_file_path = [info['path'] for info in files_to_download.values()]
|