sreepathi-ravikumar commited on
Commit
f9e478d
·
verified ·
1 Parent(s): ba31dc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from flask import Flask, send_file
2
  from flask_cors import CORS
3
  from video import video_generation
4
  import os
@@ -39,7 +39,7 @@ def get_video():
39
  "chemical equation photosynthesis",
40
  "plants supporting life on Earth"
41
  ]
42
-
43
  video_url = f"https://sreepathi-ravikumar-backendprocess.hf.space/{os.path.basename(video_path)}"
44
  return jsonify({"video_url": video_url})
45
 
 
1
+ from flask import Flask, jsonify
2
  from flask_cors import CORS
3
  from video import video_generation
4
  import os
 
39
  "chemical equation photosynthesis",
40
  "plants supporting life on Earth"
41
  ]
42
+ video_path = video_generation(text,prompts)
43
  video_url = f"https://sreepathi-ravikumar-backendprocess.hf.space/{os.path.basename(video_path)}"
44
  return jsonify({"video_url": video_url})
45