yijin928 commited on
Commit
9c11827
·
verified ·
1 Parent(s): e16d553

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -177,7 +177,7 @@ from nodes import NODE_CLASS_MAPPINGS
177
  # model_management.load_models_gpu(valid_models)
178
 
179
  #Run ComfyUI Workflow
180
- @spaces.GPU(duration=800)
181
  def generate_video(positive_prompt, num_frames, input_image):
182
 
183
  print("Positive Prompt:", positive_prompt)
@@ -304,7 +304,7 @@ def generate_video(positive_prompt, num_frames, input_image):
304
  unique_id=7214086815220268849,
305
  )
306
  print(vhs_videocombine_154)
307
- saved_path = f"output/{vhs_videocombine_154['ui']['gifs'][0]['filename']}"
308
  return saved_path
309
 
310
 
 
177
  # model_management.load_models_gpu(valid_models)
178
 
179
  #Run ComfyUI Workflow
180
+ @spaces.GPU(duration=300)
181
  def generate_video(positive_prompt, num_frames, input_image):
182
 
183
  print("Positive Prompt:", positive_prompt)
 
304
  unique_id=7214086815220268849,
305
  )
306
  print(vhs_videocombine_154)
307
+ saved_path = f"output/{vhs_videocombine_154['ui']['gifs'][0]['fullpath']}"
308
  return saved_path
309
 
310