Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ def generate_video():
|
|
21 |
|
22 |
if duration <= 0 or duration > 60:
|
23 |
return jsonify({"error": "Duration must be between 1 and 60 seconds"}), 400
|
|
|
24 |
prompts = ["sunset beach", "mountain landscape", "city skyline"]
|
25 |
asyncio.run(main(prompts))
|
26 |
image_files = sorted(glob.glob(os.path.join(image_folder, "*.jpg")))
|
|
|
21 |
|
22 |
if duration <= 0 or duration > 60:
|
23 |
return jsonify({"error": "Duration must be between 1 and 60 seconds"}), 400
|
24 |
+
image_folder = "/tmp/images"
|
25 |
prompts = ["sunset beach", "mountain landscape", "city skyline"]
|
26 |
asyncio.run(main(prompts))
|
27 |
image_files = sorted(glob.glob(os.path.join(image_folder, "*.jpg")))
|