LAP-DEV commited on
Commit
649dc5b
·
verified ·
1 Parent(s): 69b6221

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +2 -2
modules/whisper/whisper_base.py CHANGED
@@ -273,7 +273,7 @@ class WhisperBase(ABC):
273
  )
274
  files_info[file_name+"_srt"] = {"subtitle": subtitle, "time_for_task": time_for_task, "path": file_path, "lang": file_language}
275
 
276
- break ## Processing of 1 line
277
 
278
  total_result = ''
279
  total_info = ''
@@ -283,7 +283,7 @@ class WhisperBase(ABC):
283
  total_time += info["time_for_task"]
284
  #total_info += f'{info["lang"]}'
285
  total_info += f"Language {info['lang']} detected for file '{file_name}{file_ext}'"
286
- break ## Processing of 1 line
287
 
288
  #result_str = f"Processing of file '{file_name}{file_ext}' done in {self.format_time(total_time)}:\n\n{total_result}"
289
  total_info += f"\nTranscription process done in {self.format_time(total_time)}"
 
273
  )
274
  files_info[file_name+"_srt"] = {"subtitle": subtitle, "time_for_task": time_for_task, "path": file_path, "lang": file_language}
275
 
276
+ #break ## Processing of 1 line
277
 
278
  total_result = ''
279
  total_info = ''
 
283
  total_time += info["time_for_task"]
284
  #total_info += f'{info["lang"]}'
285
  total_info += f"Language {info['lang']} detected for file '{file_name}{file_ext}'"
286
+ #break ## Processing of 1 line
287
 
288
  #result_str = f"Processing of file '{file_name}{file_ext}' done in {self.format_time(total_time)}:\n\n{total_result}"
289
  total_info += f"\nTranscription process done in {self.format_time(total_time)}"