Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -417,13 +417,12 @@ class WhisperBase(ABC):
|
|
417 |
line_count = 0
|
418 |
result_fixed = ""
|
419 |
temp_lines = info["subtitle"].splitlines()
|
420 |
-
print("temp result: "+info["subtitle"])
|
421 |
for temp_line in temp_lines:
|
422 |
line_count += 1
|
423 |
-
if line_count==1:
|
424 |
-
|
425 |
-
else:
|
426 |
-
|
427 |
total_result += result_fixed
|
428 |
|
429 |
total_time += info["time_for_task"]
|
|
|
417 |
line_count = 0
|
418 |
result_fixed = ""
|
419 |
temp_lines = info["subtitle"].splitlines()
|
|
|
420 |
for temp_line in temp_lines:
|
421 |
line_count += 1
|
422 |
+
#if line_count==1:
|
423 |
+
result_fixed += info["input_source_file"]+"\t"+temp_line
|
424 |
+
#else:
|
425 |
+
# result_fixed += "\t"+temp_line
|
426 |
total_result += result_fixed
|
427 |
|
428 |
total_time += info["time_for_task"]
|