Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -623,20 +623,12 @@ class WhisperBase(ABC):
|
|
| 623 |
temp_inputdata = inputdata.split("#NEWLINE#")
|
| 624 |
for temp_line in temp_inputdata:
|
| 625 |
temp_line_list = []
|
|
|
|
| 626 |
|
| 627 |
-
print("test1:")
|
| 628 |
-
print(temp_line_items)
|
| 629 |
# Add columns to match Dataframe
|
| 630 |
-
if timestamps==True and diarize==False:
|
| 631 |
-
|
| 632 |
-
print("test2:")
|
| 633 |
-
print(temp_line_items)
|
| 634 |
-
if timestamps==False and diarize==True:
|
| 635 |
-
temp_line.insert(0,"#TAB#")
|
| 636 |
-
print("test3:")
|
| 637 |
-
print(temp_line_items)
|
| 638 |
|
| 639 |
-
temp_line_items = temp_line.split("#TAB#")
|
| 640 |
for temp_line_item in temp_line_items:
|
| 641 |
temp_line_list.append(temp_line_item)
|
| 642 |
outputdata.append(temp_line_list)
|
|
|
|
| 623 |
temp_inputdata = inputdata.split("#NEWLINE#")
|
| 624 |
for temp_line in temp_inputdata:
|
| 625 |
temp_line_list = []
|
| 626 |
+
temp_line_items = temp_line.split("#TAB#")
|
| 627 |
|
|
|
|
|
|
|
| 628 |
# Add columns to match Dataframe
|
| 629 |
+
if timestamps==True and diarize==False: temp_line_items.insert(1,"")
|
| 630 |
+
if timestamps==False and diarize==True: temp_line_items.insert(0,"")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 631 |
|
|
|
|
| 632 |
for temp_line_item in temp_line_items:
|
| 633 |
temp_line_list.append(temp_line_item)
|
| 634 |
outputdata.append(temp_line_list)
|