LAP-DEV commited on
Commit
f5ad3bb
·
verified ·
1 Parent(s): b145141

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +3 -2
modules/whisper/whisper_base.py CHANGED
@@ -398,7 +398,7 @@ class WhisperBase(ABC):
398
  if file_count > 1:
399
  total_result += f'\n'
400
  temp_title = f'〣 Transcription of media file \'{info["input_source_file"]}\':\n'
401
- temp_title += len(temp_title)*''
402
  total_result += temp_title+'\n'
403
 
404
  total_time += info["time_for_task"]
@@ -412,7 +412,8 @@ class WhisperBase(ABC):
412
  total_info += f'Translation:\t{info["translation"]}\n\t⤷ Handled by Facebook NLLB\n'
413
 
414
  time_end = datetime.now()
415
- total_info += f"\nTotal processing time: {self.format_time((time_end-time_start).total_seconds())}"
 
416
 
417
  result_str = total_result.rstrip("\n")
418
  result_file_path = [info['path'] for info in files_to_download.values()]
 
398
  if file_count > 1:
399
  total_result += f'\n'
400
  temp_title = f'〣 Transcription of media file \'{info["input_source_file"]}\':\n'
401
+ temp_title += len(temp_title)*'-'
402
  total_result += temp_title+'\n'
403
 
404
  total_time += info["time_for_task"]
 
412
  total_info += f'Translation:\t{info["translation"]}\n\t⤷ Handled by Facebook NLLB\n'
413
 
414
  time_end = datetime.now()
415
+ total_info += f"\nTotal processing time:\t{self.format_time((time_end-time_start).total_seconds())}"
416
+ total_info += f"\nTotal processed files:\t{file_count}"
417
 
418
  result_str = total_result.rstrip("\n")
419
  result_file_path = [info['path'] for info in files_to_download.values()]