Spaces:
Sleeping
Sleeping
Update src/text_to_video.py
Browse files- src/text_to_video.py +2 -2
src/text_to_video.py
CHANGED
@@ -33,10 +33,10 @@ def create_srt_from_time_and_text(duration_time, text_folder, output_srt):
|
|
33 |
subtitle = ""
|
34 |
subtitle_index = 1
|
35 |
text_list = sorted([file for file in os.listdir(text_folder) if file.endswith('.txt') and file != "text.txt" and file != "requirements.txt"])
|
36 |
-
print(f"Accessing duration_time list: {len(
|
37 |
# Duyệt qua các mốc thời gian và file text
|
38 |
for i in range(len(duration_time) - 1):
|
39 |
-
print(f"Accessing text_list
|
40 |
start_time = duration_time[i]
|
41 |
end_time = duration_time[i + 1]
|
42 |
|
|
|
33 |
subtitle = ""
|
34 |
subtitle_index = 1
|
35 |
text_list = sorted([file for file in os.listdir(text_folder) if file.endswith('.txt') and file != "text.txt" and file != "requirements.txt"])
|
36 |
+
print(f"Accessing duration_time list:{duration_time} with lenght: {len(duration_time)}")
|
37 |
# Duyệt qua các mốc thời gian và file text
|
38 |
for i in range(len(duration_time) - 1):
|
39 |
+
print(f"Accessing text_list list: {text_list} with length: {len(text_list)}")
|
40 |
start_time = duration_time[i]
|
41 |
end_time = duration_time[i + 1]
|
42 |
|