Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -376,6 +376,7 @@ class WhisperBase(ABC):
|
|
| 376 |
total_result += f'{info["subtitle"]}'
|
| 377 |
|
| 378 |
total_time += info["time_for_task"]
|
|
|
|
| 379 |
total_info += f'Input file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
|
| 380 |
|
| 381 |
if params.is_translate:
|
|
@@ -389,8 +390,9 @@ class WhisperBase(ABC):
|
|
| 389 |
|
| 390 |
result_str = total_result.rstrip("\n")
|
| 391 |
|
| 392 |
-
# Fix tab indents
|
| 393 |
-
|
|
|
|
| 394 |
|
| 395 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
| 396 |
|
|
|
|
| 376 |
total_result += f'{info["subtitle"]}'
|
| 377 |
|
| 378 |
total_time += info["time_for_task"]
|
| 379 |
+
total_info += f'\n'
|
| 380 |
total_info += f'Input file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
|
| 381 |
|
| 382 |
if params.is_translate:
|
|
|
|
| 390 |
|
| 391 |
result_str = total_result.rstrip("\n")
|
| 392 |
|
| 393 |
+
# Fix tab indents
|
| 394 |
+
total_info = total_info.expandtabs(8)
|
| 395 |
+
result_str = result_str.expandtabs(8)
|
| 396 |
|
| 397 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
| 398 |
|