Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -277,11 +277,12 @@ class WhisperBase(ABC):
|
|
277 |
total_info = ''
|
278 |
total_time = 0
|
279 |
for file_name, info in files_info.items():
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
|
|
285 |
|
286 |
#result_str = f"Processing of file '{file_name}{file_ext}' done in {self.format_time(total_time)}:\n\n{total_result}"
|
287 |
total_info += f"\nTranscription process done in {self.format_time(total_time)}"
|
|
|
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'{info["lang"]}'
|
283 |
+
total_info += f"Language {info['lang']} detected for file '{file_name}{file_ext}'"
|
284 |
+
# Just get first line:
|
285 |
+
break
|
286 |
|
287 |
#result_str = f"Processing of file '{file_name}{file_ext}' done in {self.format_time(total_time)}:\n\n{total_result}"
|
288 |
total_info += f"\nTranscription process done in {self.format_time(total_time)}"
|