LAP-DEV commited on
Commit
d1930e5
·
verified ·
1 Parent(s): 9a1d55d

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +6 -6
modules/whisper/whisper_base.py CHANGED
@@ -276,12 +276,12 @@ class WhisperBase(ABC):
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
 
 
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