Spaces:
Running
Running
Muhammad Waqas
commited on
Commit
·
bd972fb
1
Parent(s):
0b42297
Added: Generate image to video
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ def get_image_file(filename):
|
|
198 |
@app.route('/image_to_video', methods=['POST'])
|
199 |
def image_to_video():
|
200 |
|
201 |
-
return "Route works!"
|
202 |
|
203 |
data = request.json
|
204 |
|
@@ -241,6 +241,8 @@ def image_to_video():
|
|
241 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
242 |
file_path = os.path.join(current_dir, 'workflows/cogvideox_image_to_video_workflow_api.json')
|
243 |
|
|
|
|
|
244 |
# Load and modify workflow
|
245 |
with open(file_path, 'r', encoding='utf-8') as file:
|
246 |
workflow = json.load(file)
|
|
|
198 |
@app.route('/image_to_video', methods=['POST'])
|
199 |
def image_to_video():
|
200 |
|
201 |
+
# return "Route works!"
|
202 |
|
203 |
data = request.json
|
204 |
|
|
|
241 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
242 |
file_path = os.path.join(current_dir, 'workflows/cogvideox_image_to_video_workflow_api.json')
|
243 |
|
244 |
+
print(f"Modified workflow: {file_path}")
|
245 |
+
|
246 |
# Load and modify workflow
|
247 |
with open(file_path, 'r', encoding='utf-8') as file:
|
248 |
workflow = json.load(file)
|