Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -286,9 +286,9 @@ class WhisperBase(ABC):
|
|
286 |
total_time += info["time_for_task"]
|
287 |
total_info += f'Input file: {info["input_source_file"]}\nLanguage prediction: {info["lang"]} with probability {info["lang_prob"]}\n'
|
288 |
|
289 |
-
total_info += f"\nTranscription duration: {self.format_time(total_time)}"
|
290 |
time_end = datetime.now()
|
291 |
-
|
292 |
|
293 |
result_str = total_result
|
294 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
|
|
286 |
total_time += info["time_for_task"]
|
287 |
total_info += f'Input file: {info["input_source_file"]}\nLanguage prediction: {info["lang"]} with probability {info["lang_prob"]}\n'
|
288 |
|
289 |
+
#total_info += f"\nTranscription duration: {self.format_time(total_time)}"
|
290 |
time_end = datetime.now()
|
291 |
+
total_info += f"\nTranscription duration: {self.format_time((time_end-time_start).total_seconds())}"
|
292 |
|
293 |
result_str = total_result
|
294 |
result_file_path = [info['path'] for info in files_to_download.values()]
|