Update app.py
Browse files
app.py
CHANGED
|
@@ -90,22 +90,7 @@ def generate_video():
|
|
| 90 |
|
| 91 |
# Print or use lines as slides
|
| 92 |
if len(lines)==1:
|
| 93 |
-
|
| 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)
|
| 101 |
-
#image_files = sorted(glob.glob(os.path.join(image_folder, "*.png")))
|
| 102 |
-
#if not image_files:
|
| 103 |
-
#raise ValueError("No images found in folder!")
|
| 104 |
-
video_link = "/app/data/video/clip0.mp4"
|
| 105 |
-
video_func(0,lines)
|
| 106 |
-
#for img in image_files:
|
| 107 |
-
#os.remove(img)
|
| 108 |
-
return send_file(video_link, mimetype='video/mp4')
|
| 109 |
|
| 110 |
else:
|
| 111 |
print("learn deeper")
|
|
|
|
| 90 |
|
| 91 |
# Print or use lines as slides
|
| 92 |
if len(lines)==1:
|
| 93 |
+
print(lines)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
else:
|
| 96 |
print("learn deeper")
|