Spaces:
Running
on
Zero
Running
on
Zero
VictorKai1996NUS
commited on
Update app.py
Browse files
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=[
|
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=[
|
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,
|