Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -406,7 +406,7 @@ class WhisperBase(ABC):
|
|
| 406 |
total_time = 0
|
| 407 |
file_count = 0
|
| 408 |
for file_name, info in files_info.items():
|
| 409 |
-
|
| 410 |
file_count += 1
|
| 411 |
|
| 412 |
# Add filename & info as first line
|
|
@@ -421,8 +421,8 @@ class WhisperBase(ABC):
|
|
| 421 |
title_line += "#NEWLINE#"
|
| 422 |
|
| 423 |
for temp_file in files_to_download.items():
|
| 424 |
-
|
| 425 |
-
|
| 426 |
|
| 427 |
total_result += title_line+(((info["subtitle"].rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
|
| 428 |
total_time += info["time_for_task"]
|
|
|
|
| 406 |
total_time = 0
|
| 407 |
file_count = 0
|
| 408 |
for file_name, info in files_info.items():
|
| 409 |
+
|
| 410 |
file_count += 1
|
| 411 |
|
| 412 |
# Add filename & info as first line
|
|
|
|
| 421 |
title_line += "#NEWLINE#"
|
| 422 |
|
| 423 |
for temp_file in files_to_download.items():
|
| 424 |
+
if temp_file[0].split("_") == file_name
|
| 425 |
+
print((temp_file[1])["path"])
|
| 426 |
|
| 427 |
total_result += title_line+(((info["subtitle"].rstrip("\n")).replace("\t","#TAB#")).replace("\n","#NEWLINE#"))
|
| 428 |
total_time += info["time_for_task"]
|