LAP-DEV commited on
Commit
e49259f
·
verified ·
1 Parent(s): e1c3895

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +4 -1
modules/whisper/whisper_base.py CHANGED
@@ -426,9 +426,12 @@ class WhisperBase(ABC):
426
 
427
  time_end = datetime.now()
428
  total_info = f"Processed {file_count} {'file' if file_count == 1 else 'files'} in {self.format_time((time_end-time_start).total_seconds())}"
429
- result_file_path = [info['path'] for info in files_to_download.values()]
430
  #total_info += f"Total processing time:\t{self.format_time((time_end-time_start).total_seconds())}"
 
431
 
 
 
 
432
  return [gr.update(value={"data": self.transform_text_to_list(total_result)}),result_file_path,total_info]
433
  #return [result_str,result_file_path,total_info]
434
 
 
426
 
427
  time_end = datetime.now()
428
  total_info = f"Processed {file_count} {'file' if file_count == 1 else 'files'} in {self.format_time((time_end-time_start).total_seconds())}"
 
429
  #total_info += f"Total processing time:\t{self.format_time((time_end-time_start).total_seconds())}"
430
+ result_file_path = [info['path'] for info in files_to_download.values()]
431
 
432
+ if len(result_file_path)>0:
433
+ total_info = f"\nOpen sidebar at top right to download output data ({len(result_file_path)} files)"
434
+
435
  return [gr.update(value={"data": self.transform_text_to_list(total_result)}),result_file_path,total_info]
436
  #return [result_str,result_file_path,total_info]
437