VictorKai1996NUS commited on
Commit
31f8e54
·
verified ·
1 Parent(s): 3f0b7db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -339,17 +339,17 @@ with gr.Blocks(css=css) as demo:
339
  # click events
340
  generate_button.click(
341
  run_task,
342
- inputs=[lambda: generate_vanilla, prompt, num_inference_steps, guidance_scale],
343
  outputs=[
344
  gr.Group([video_output, download_video_button, elapsed_time]),
345
  task_status,
346
  gr.Group([generate_button, generate_button_vs])
347
  ]
348
  )
349
-
350
  generate_button_vs.click(
351
  run_task,
352
- inputs=[lambda: generate_vs, prompt, num_inference_steps, guidance_scale, pab_threshold, pab_gap],
353
  outputs=[
354
  gr.Group([video_output_vs, download_video_button_vs, elapsed_time_vs]),
355
  task_status,
 
339
  # click events
340
  generate_button.click(
341
  run_task,
342
+ inputs=[gr.Textbox(value=str(generate_vanilla), visible=False), prompt, num_inference_steps, guidance_scale],
343
  outputs=[
344
  gr.Group([video_output, download_video_button, elapsed_time]),
345
  task_status,
346
  gr.Group([generate_button, generate_button_vs])
347
  ]
348
  )
349
+
350
  generate_button_vs.click(
351
  run_task,
352
+ inputs=[gr.Textbox(value=str(generate_vs), visible=False), prompt, num_inference_steps, guidance_scale, pab_threshold, pab_gap],
353
  outputs=[
354
  gr.Group([video_output_vs, download_video_button_vs, elapsed_time_vs]),
355
  task_status,