Update modules/whisper/whisper_base.py
Browse files
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)}"
|