sreepathi-ravikumar commited on
Commit
dc85dd8
·
verified ·
1 Parent(s): 62d483c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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")))