Spaces:
Sleeping
Sleeping
Commit
·
5997829
1
Parent(s):
e67eadb
"LOL"
Browse files- app.py +2 -2
- src/text_to_video.py +1 -1
app.py
CHANGED
@@ -44,8 +44,8 @@ KnowFlow automates the process of converting lecture documents (PDF, DOCX) into
|
|
44 |
3️⃣ **Generate the video** – the system will process and compile it.
|
45 |
4️⃣ **Download the final video** for review or sharing.
|
46 |
|
47 |
-
🚀 Fully open-source and free to use!
|
48 |
-
If you find it's slow, then another person must be using the GPU.
|
49 |
""")
|
50 |
# Upload file PDF
|
51 |
uploaded_file = st.file_uploader("📂 Upload your document (PDF)", type=["pdf","docx"])
|
|
|
44 |
3️⃣ **Generate the video** – the system will process and compile it.
|
45 |
4️⃣ **Download the final video** for review or sharing.
|
46 |
|
47 |
+
🚀 Fully open-source and free to use! \n
|
48 |
+
If you find it's slow, then another person must be using the GPU. Please wait!!
|
49 |
""")
|
50 |
# Upload file PDF
|
51 |
uploaded_file = st.file_uploader("📂 Upload your document (PDF)", type=["pdf","docx"])
|
src/text_to_video.py
CHANGED
@@ -32,7 +32,7 @@ def get_audio_duration(audio_path):
|
|
32 |
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"])
|
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]
|
|
|
32 |
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]
|