Muhammad Waqas commited on
Commit
0b42297
·
1 Parent(s): 191a9de

Added: Generate image to video

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. templates/home.html +1 -1
app.py CHANGED
@@ -197,6 +197,9 @@ def get_image_file(filename):
197
  # Generate image to video route
198
  @app.route('/image_to_video', methods=['POST'])
199
  def image_to_video():
 
 
 
200
  data = request.json
201
 
202
  # Extract token from headers
 
197
  # Generate image to video route
198
  @app.route('/image_to_video', methods=['POST'])
199
  def image_to_video():
200
+
201
+ return "Route works!"
202
+
203
  data = request.json
204
 
205
  # Extract token from headers
templates/home.html CHANGED
@@ -45,7 +45,7 @@
45
  <body>
46
  <h1>Welcome to ComfyUI API Interface!</h1>
47
  <p>Use the API to generate images based on your prompts.</p>
48
- <a href="/generate_image" target="_blank">Generate Image/Video</a>
49
  </body>
50
  </html>
51
  </title>
 
45
  <body>
46
  <h1>Welcome to ComfyUI API Interface!</h1>
47
  <p>Use the API to generate images based on your prompts.</p>
48
+ <a href="/generate_image" target="_blank">Generate Image / Video</a>
49
  </body>
50
  </html>
51
  </title>