Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -397,7 +397,7 @@ class WhisperBase(ABC):
|
|
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"]}'
|
@@ -412,10 +412,10 @@ class WhisperBase(ABC):
|
|
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 = "
|
416 |
if file_count!=1:
|
417 |
temp_file_count_text += "s"
|
418 |
-
total_info += f"\
|
419 |
|
420 |
result_str = total_result.rstrip("\n")
|
421 |
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{(33+len(file_name)+2)*"-"}\n'
|
401 |
|
402 |
total_time += info["time_for_task"]
|
403 |
total_result += f'{info["subtitle"]}'
|
|
|
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"\nProcessed {file_count} {temp_file_count_text} 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()]
|