Update app.py
Browse files
app.py
CHANGED
|
@@ -90,8 +90,11 @@ def generate_video():
|
|
| 90 |
|
| 91 |
# Print or use lines as slides
|
| 92 |
if len(lines)==1:
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
| 95 |
#image_folder="/tmp/images"
|
| 96 |
#image_olst=[]
|
| 97 |
#create_text_image(lines[0],0,image_olst)
|
|
|
|
| 90 |
|
| 91 |
# Print or use lines as slides
|
| 92 |
if len(lines)==1:
|
| 93 |
+
try:
|
| 94 |
+
os.remove("/app/data/video/clip0.mp4")
|
| 95 |
+
os.remove("/app/data/sound/audio0.mp3")
|
| 96 |
+
except Exception as e:
|
| 97 |
+
print(e)
|
| 98 |
#image_folder="/tmp/images"
|
| 99 |
#image_olst=[]
|
| 100 |
#create_text_image(lines[0],0,image_olst)
|