Update modules/whisper/whisper_base.py
Browse files- modules/whisper/whisper_base.py +10 -10
modules/whisper/whisper_base.py
CHANGED
|
@@ -627,16 +627,16 @@ class WhisperBase(ABC):
|
|
| 627 |
|
| 628 |
def transform_text_to_list(inputdata):
|
| 629 |
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
|
| 641 |
@staticmethod
|
| 642 |
def format_time(elapsed_time: float) -> str:
|
|
|
|
| 627 |
|
| 628 |
def transform_text_to_list(inputdata):
|
| 629 |
|
| 630 |
+
outputdata = []
|
| 631 |
+
temp_inputdata = (inputdata.strip("\n")).splitlines()
|
| 632 |
+
for temp_line in temp_inputdata:
|
| 633 |
+
temp_line_list = []
|
| 634 |
+
temp_line_items = temp_line.split("\t")
|
| 635 |
+
for temp_line_item in temp_line_items:
|
| 636 |
+
temp_line_list.append(temp_line_item)
|
| 637 |
+
outputdata.append(temp_line_list)
|
| 638 |
+
|
| 639 |
+
return outputdata
|
| 640 |
|
| 641 |
@staticmethod
|
| 642 |
def format_time(elapsed_time: float) -> str:
|