Spaces:
Sleeping
Sleeping
Muhammad Waqas
commited on
Commit
·
d6f45c3
1
Parent(s):
7a4f06d
Added: Generate image to video
Browse files
app.py
CHANGED
@@ -350,7 +350,7 @@ def v1_image_to_video():
|
|
350 |
# Queue the prompt
|
351 |
prompt_id = queue_prompt(workflow, token)
|
352 |
|
353 |
-
return jsonify({'prompt_id': prompt_id, 'message': 'Prompt queued successfully', 'get_video_url': f'https://gosign-de-comfyui-api.hf.space/
|
354 |
|
355 |
except Exception as e:
|
356 |
return jsonify({'message': 'Unbale to connect to the server. Make sure the server is running', 'error': str(e)}), 500
|
|
|
350 |
# Queue the prompt
|
351 |
prompt_id = queue_prompt(workflow, token)
|
352 |
|
353 |
+
return jsonify({'prompt_id': prompt_id, 'message': 'Prompt queued successfully', 'get_video_url': f'https://gosign-de-comfyui-api.hf.space/v1/video_tasks/{prompt_id}'}), 202
|
354 |
|
355 |
except Exception as e:
|
356 |
return jsonify({'message': 'Unbale to connect to the server. Make sure the server is running', 'error': str(e)}), 500
|