Muhammad Waqas commited on
Commit
9abb18b
·
1 Parent(s): c5f9bd0

Added: Generate image to video

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -515,6 +515,9 @@ def image_to_video():
515
  # Queue the prompt and wait for completion
516
  prompt_id = queue_prompt(workflow, token)
517
 
 
 
 
518
  # Wait for workflow execution to complete
519
  # last_ping = time.time()
520
  # PING_INTERVAL = 30
 
515
  # Queue the prompt and wait for completion
516
  prompt_id = queue_prompt(workflow, token)
517
 
518
+ return jsonify({'prompt_id': prompt_id, 'message': 'Prompt queued successfully', 'get_video_url': f'https://gosign-de-comfyui-api.hf.space/get_video/{prompt_id}'}), 202
519
+
520
+
521
  # Wait for workflow execution to complete
522
  # last_ping = time.time()
523
  # PING_INTERVAL = 30