jbilcke-hf HF staff commited on
Commit
3a53c1a
1 Parent(s): c907ab3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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(fn=generate_video, inputs=[image, seed, motion_bucket_id, fps_id, secret_token], outputs=[base64_out], api_name="generate_video")
 
 
 
 
 
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()