Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +5 -5
gradio_app.py
CHANGED
@@ -218,11 +218,11 @@ with gr.Blocks(css=css) as demo:
|
|
218 |
with gr.Column():
|
219 |
video_output=gr.Video(label="Generated Video")
|
220 |
|
221 |
-
submit_btn.click(
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
)
|
226 |
|
227 |
# Launch the interface
|
228 |
demo.launch(show_error=True, show_api=False)
|
|
|
218 |
with gr.Column():
|
219 |
video_output=gr.Video(label="Generated Video")
|
220 |
|
221 |
+
submit_btn.click(
|
222 |
+
fn=run_inference,
|
223 |
+
inputs=[user_prompt, guidance_scale, num_sampling_steps, seed, enable_cpu_offload],
|
224 |
+
outputs=video_output
|
225 |
+
)
|
226 |
|
227 |
# Launch the interface
|
228 |
demo.launch(show_error=True, show_api=False)
|