Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -272,8 +272,6 @@ class WhisperBase(ABC):
|
|
| 272 |
output_dir=self.output_dir
|
| 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 +281,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 |
-
|
| 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)}"
|
|
|
|
| 272 |
output_dir=self.output_dir
|
| 273 |
)
|
| 274 |
files_info[file_name+"_srt"] = {"subtitle": subtitle, "time_for_task": time_for_task, "path": file_path, "lang": file_language}
|
|
|
|
|
|
|
| 275 |
|
| 276 |
total_result = ''
|
| 277 |
total_info = ''
|
|
|
|
| 281 |
total_time += info["time_for_task"]
|
| 282 |
#total_info += f'{info["lang"]}'
|
| 283 |
total_info += f"Language {info['lang']} detected for file '{file_name}{file_ext}'"
|
| 284 |
+
break
|
| 285 |
|
| 286 |
#result_str = f"Processing of file '{file_name}{file_ext}' done in {self.format_time(total_time)}:\n\n{total_result}"
|
| 287 |
total_info += f"\nTranscription process done in {self.format_time(total_time)}"
|