Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -413,13 +413,13 @@ class WhisperBase(ABC):
|
|
| 413 |
if process_multiple:
|
| 414 |
temp_lines = {info["subtitle"]}
|
| 415 |
line_count = 0
|
| 416 |
-
result_fixed =
|
| 417 |
for temp_line in temp_lines:
|
| 418 |
line_count += 1
|
| 419 |
if line_count==1:
|
| 420 |
-
result_fixed
|
| 421 |
else:
|
| 422 |
-
result_fixed
|
| 423 |
total_result += result_fixed
|
| 424 |
else:
|
| 425 |
total_result += f'{info["subtitle"]}'
|
|
|
|
| 413 |
if process_multiple:
|
| 414 |
temp_lines = {info["subtitle"]}
|
| 415 |
line_count = 0
|
| 416 |
+
result_fixed = ""
|
| 417 |
for temp_line in temp_lines:
|
| 418 |
line_count += 1
|
| 419 |
if line_count==1:
|
| 420 |
+
result_fixed += info["input_source_file"]+"\t"+temp_line
|
| 421 |
else:
|
| 422 |
+
result_fixed += "\t"+temp_line
|
| 423 |
total_result += result_fixed
|
| 424 |
else:
|
| 425 |
total_result += f'{info["subtitle"]}'
|