akhaliq HF staff commited on
Commit
da5d467
1 Parent(s): 2f5220a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -42,4 +42,8 @@ def predict(frame1, frame2, times_to_interpolate):
42
  mediapy.write_video(str(out_path), frames, fps=30)
43
  return out_path
44
 
45
- gr.Interface(predict,[gr.inputs.Image(type='pil'),gr.inputs.Image(type='pil'),gr.inputs.Slider(minimum=2,maximum=5,step=1)],"playable_video").launch(enable_queue=True)
 
 
 
 
 
42
  mediapy.write_video(str(out_path), frames, fps=30)
43
  return out_path
44
 
45
+ title="frame-interpolation"
46
+ description="Gradio demo for FILM: Frame Interpolation for Large Scene Motion. To use it, simply upload your images and add the times to interpolate number or click on one of the examples to load them. Read more at the links below."
47
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2202.04901' target='_blank'>FILM: Frame Interpolation for Large Motion</a> | <a href='https://github.com/google-research/frame-interpolation' target='_blank'>Github Repo</a></p>"
48
+ examples=[['cat1.jpeg','cat1.jpeg',2]]
49
+ gr.Interface(predict,[gr.inputs.Image(type='pil'),gr.inputs.Image(type='pil'),gr.inputs.Slider(minimum=2,maximum=5,step=1)],"playable_video",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)