Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
@@ -419,10 +419,10 @@ class WhisperBase(ABC):
|
|
419 |
temp_lines = info["subtitle"].splitlines()
|
420 |
for temp_line in temp_lines:
|
421 |
line_count += 1
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
total_result += result_fixed
|
427 |
|
428 |
total_time += info["time_for_task"]
|
|
|
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+"\n"
|
424 |
+
else:
|
425 |
+
result_fixed += "\t"+temp_line+"\n"
|
426 |
total_result += result_fixed
|
427 |
|
428 |
total_time += info["time_for_task"]
|