Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -423,6 +423,9 @@ class WhisperBase(ABC):
|
|
| 423 |
|
| 424 |
total_result += title_line+"#NEWLINE#"+(((temp_subtitle.rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
|
| 425 |
total_time += info["time_for_task"]
|
|
|
|
|
|
|
|
|
|
| 426 |
|
| 427 |
time_end = datetime.now()
|
| 428 |
total_info = f"Processed {file_count} {'file' if file_count == 1 else 'files'} in {self.format_time((time_end-time_start).total_seconds())}"
|
|
@@ -648,9 +651,6 @@ class WhisperBase(ABC):
|
|
| 648 |
|
| 649 |
outputdata.append([col_time,col_speaker,col_text])
|
| 650 |
|
| 651 |
-
ouputdata = outputdata.replace("\t"," ")
|
| 652 |
-
ouputdata = outputdata.replace("\n","<BR>")
|
| 653 |
-
|
| 654 |
return outputdata
|
| 655 |
|
| 656 |
@staticmethod
|
|
|
|
| 423 |
|
| 424 |
total_result += title_line+"#NEWLINE#"+(((temp_subtitle.rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
|
| 425 |
total_time += info["time_for_task"]
|
| 426 |
+
|
| 427 |
+
total_result = total_result.replace("\t"," ")
|
| 428 |
+
total_result = total_result.replace("\n","<BR>")
|
| 429 |
|
| 430 |
time_end = datetime.now()
|
| 431 |
total_info = f"Processed {file_count} {'file' if file_count == 1 else 'files'} in {self.format_time((time_end-time_start).total_seconds())}"
|
|
|
|
| 651 |
|
| 652 |
outputdata.append([col_time,col_speaker,col_text])
|
| 653 |
|
|
|
|
|
|
|
|
|
|
| 654 |
return outputdata
|
| 655 |
|
| 656 |
@staticmethod
|