Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -276,12 +276,12 @@ class WhisperBase(ABC):
|
|
276 |
total_result = ''
|
277 |
total_info = ''
|
278 |
total_time = 0
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
result_str = total_result
|
286 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
287 |
|
|
|
276 |
total_result = ''
|
277 |
total_info = ''
|
278 |
total_time = 0
|
279 |
+
for file_name, info in files_info.items():
|
280 |
+
total_result += f'{info["subtitle"]}'
|
281 |
+
total_time += info["time_for_task"]
|
282 |
+
total_info += f'Input file: {info["input_source_file"]}\nLanguage prediction: {info["lang"]}\n'
|
283 |
+
|
284 |
+
total_info += f"\nTranscription duration: {self.format_time(total_time)}"
|
285 |
result_str = total_result
|
286 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
287 |
|