Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -397,9 +397,7 @@ class WhisperBase(ABC):
|
|
397 |
if file_count_total > 1:
|
398 |
if file_count > 1:
|
399 |
total_result += f'\n'
|
400 |
-
|
401 |
-
temp_title += len(temp_title)*'-'
|
402 |
-
total_result += temp_title+'\n'
|
403 |
|
404 |
total_time += info["time_for_task"]
|
405 |
total_result += f'{info["subtitle"]}'
|
@@ -412,8 +410,12 @@ 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:\t{self.format_time((time_end-time_start).total_seconds())}"
|
416 |
-
|
|
|
|
|
|
|
|
|
417 |
|
418 |
result_str = total_result.rstrip("\n")
|
419 |
result_file_path = [info['path'] for info in files_to_download.values()]
|
|
|
397 |
if file_count_total > 1:
|
398 |
if file_count > 1:
|
399 |
total_result += f'\n'
|
400 |
+
total_result += f'〣 Transcription of media file \'{info["input_source_file"]}\':\n\n'
|
|
|
|
|
401 |
|
402 |
total_time += info["time_for_task"]
|
403 |
total_result += f'{info["subtitle"]}'
|
|
|
410 |
total_info += f'Translation:\t{info["translation"]}\n\t⤷ Handled by Facebook NLLB\n'
|
411 |
|
412 |
time_end = datetime.now()
|
413 |
+
#total_info += f"\nTotal processing time:\t{self.format_time((time_end-time_start).total_seconds())}"
|
414 |
+
|
415 |
+
temp_file_count_text = "File"
|
416 |
+
if file_count!=1:
|
417 |
+
temp_file_count_text += "s"
|
418 |
+
total_info += f"\n{file_count} {temp_file_count_text} processed in {self.format_time((time_end-time_start).total_seconds())}"
|
419 |
|
420 |
result_str = total_result.rstrip("\n")
|
421 |
result_file_path = [info['path'] for info in files_to_download.values()]
|