Commit
•
3a53c1a
1
Parent(s):
c907ab3
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,12 @@ with gr.Blocks() as demo:
|
|
121 |
motion_bucket_id = gr.Slider(label="Motion bucket id", info="Controls how much motion to add/remove from the image", value=127, minimum=1, maximum=255)
|
122 |
fps_id = gr.Slider(label="Frames per second", info="The length of your video in seconds will be 25/fps", value=6, minimum=5, maximum=30)
|
123 |
|
124 |
-
generate_btn.click(
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
if __name__ == "__main__":
|
127 |
demo.queue(max_size=20).launch()
|
|
|
121 |
motion_bucket_id = gr.Slider(label="Motion bucket id", info="Controls how much motion to add/remove from the image", value=127, minimum=1, maximum=255)
|
122 |
fps_id = gr.Slider(label="Frames per second", info="The length of your video in seconds will be 25/fps", value=6, minimum=5, maximum=30)
|
123 |
|
124 |
+
generate_btn.click(
|
125 |
+
fn=generate_video,
|
126 |
+
inputs=[image, seed, motion_bucket_id, fps_id, secret_token],
|
127 |
+
outputs=base64_out,
|
128 |
+
api_name="run"
|
129 |
+
)
|
130 |
|
131 |
if __name__ == "__main__":
|
132 |
demo.queue(max_size=20).launch()
|