LAP-DEV commited on
Commit
4e45895
·
verified ·
1 Parent(s): 6da5040

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +11 -6
modules/whisper/whisper_base.py CHANGED
@@ -388,14 +388,19 @@ class WhisperBase(ABC):
388
  total_time = 0
389
  file_count = 0
390
  for file_name, info in files_info.items():
391
- total_result += f'{info["subtitle"]}'
392
-
393
- total_time += info["time_for_task"]
394
 
395
- if file_count += 1
396
  if file_count > 1:
397
- total_info += f'\n'
398
-
 
 
 
 
 
 
 
399
  total_info += f'Media file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
400
 
401
  if params.is_translate:
 
388
  total_time = 0
389
  file_count = 0
390
  for file_name, info in files_info.items():
391
+
392
+ file_count += 1
 
393
 
 
394
  if file_count > 1:
395
+ total_info += f'\n'
396
+
397
+ if file_count_total > 1:
398
+ if file_count > 1:
399
+ total_result += f'\n'
400
+ total_result += f'Transcription of media file\t{info["input_source_file"]}:\n'
401
+
402
+ total_time += info["time_for_task"]
403
+ total_result += f'{info["subtitle"]}'
404
  total_info += f'Media file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
405
 
406
  if params.is_translate: