multimodalart HF staff commited on
Commit
ba7dc43
1 Parent(s): 25d3956

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -304,16 +304,15 @@ Generate 25 frames of video from a single image at 6 fps. Each generation takes
304
  ''')
305
  with gr.Row():
306
  with gr.Column():
307
- image = gr.Image(label="Upload your image (it will be center cropped to 1024x576)", type="filepath")
308
  generate_btn = gr.Button("Generate")
309
  video = gr.Video()
310
  with gr.Accordion(open=False):
311
  seed = gr.Slider(label="Seed", value=42, randomize=True, minimum=0, maximum=max_64_bit_int)
312
  randomize_seed = gr.Checkbox("Randomize seed")
313
 
314
-
315
  image.upload(fn=resize_image, inputs=image, outputs=image, queue=False)
316
  generate_btn.click(fn=sample, inputs=[image, seed, randomize_seed], outputs=[video, seed], api_name="video")
317
 
318
  if __name__ == "__main__":
319
- demo.launch(share=True)
 
304
  ''')
305
  with gr.Row():
306
  with gr.Column():
307
+ image = gr.Image(label="Upload your image", type="filepath")
308
  generate_btn = gr.Button("Generate")
309
  video = gr.Video()
310
  with gr.Accordion(open=False):
311
  seed = gr.Slider(label="Seed", value=42, randomize=True, minimum=0, maximum=max_64_bit_int)
312
  randomize_seed = gr.Checkbox("Randomize seed")
313
 
 
314
  image.upload(fn=resize_image, inputs=image, outputs=image, queue=False)
315
  generate_btn.click(fn=sample, inputs=[image, seed, randomize_seed], outputs=[video, seed], api_name="video")
316
 
317
  if __name__ == "__main__":
318
+ demo.launch(share=True)