Spaces:
Sleeping
Sleeping
Commit
·
ec21036
1
Parent(s):
5997829
"L"
Browse files- src/text_to_video.py +2 -0
src/text_to_video.py
CHANGED
@@ -33,8 +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 |
# Duyệt qua các mốc thời gian và file text
|
37 |
for i in range(len(duration_time) - 1):
|
|
|
38 |
start_time = duration_time[i]
|
39 |
end_time = duration_time[i + 1]
|
40 |
|
|
|
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(text_list)} elements")
|
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 at index {i}, length of text_list: {len(text_list)}")
|
40 |
start_time = duration_time[i]
|
41 |
end_time = duration_time[i + 1]
|
42 |
|