Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -433,11 +433,11 @@ class WhisperBase(ABC):
|
|
433 |
|
434 |
total_info = ""
|
435 |
if params.is_translate or translate_output:
|
436 |
-
total_info = "Translation
|
437 |
if diarize_speakers:
|
438 |
if total_info != "": total_info += "\n"
|
439 |
-
total_info += "Diarization
|
440 |
-
if total_info != "": total_info += "\n"
|
441 |
total_info += f"Processed {file_count} {'file' if file_count == 1 else 'files'} in {self.format_time((time_end-time_start).total_seconds())}"
|
442 |
|
443 |
result_str = self.transform_text_to_list(total_result,"□","■") #Transform to gr.Dataframe format
|
|
|
433 |
|
434 |
total_info = ""
|
435 |
if params.is_translate or translate_output:
|
436 |
+
total_info = "Translation:\tEnabled"
|
437 |
if diarize_speakers:
|
438 |
if total_info != "": total_info += "\n"
|
439 |
+
total_info += "Diarization:\tEnabled"
|
440 |
+
if total_info != "": total_info += "\n\n"
|
441 |
total_info += f"Processed {file_count} {'file' if file_count == 1 else 'files'} in {self.format_time((time_end-time_start).total_seconds())}"
|
442 |
|
443 |
result_str = self.transform_text_to_list(total_result,"□","■") #Transform to gr.Dataframe format
|