akhaliq HF staff commited on
Commit
87e80da
1 Parent(s): 569cf9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,6 +12,8 @@ import gradio as gr
12
 
13
  from huggingface_hub import snapshot_download
14
 
 
 
15
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
16
 
17
  interpolator = interpolator.Interpolator(model, None)
@@ -32,5 +34,5 @@ def predict(frame1, frame2, times_to_interpolate):
32
  title="frame-interpolation"
33
  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."
34
  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>"
35
- examples=[['cat1.jpeg','cat2.jpeg',2]]
36
  gr.Interface(predict,[gr.inputs.Image(type='filepath'),gr.inputs.Image(type='filepath'),gr.inputs.Slider(minimum=2,maximum=5,step=1)],"playable_video",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
 
12
 
13
  from huggingface_hub import snapshot_download
14
 
15
+ os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/one.png")
16
+ os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/two.png")
17
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
18
 
19
  interpolator = interpolator.Interpolator(model, None)
 
34
  title="frame-interpolation"
35
  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."
36
  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>"
37
+ examples=[['one.png','two.png',2]]
38
  gr.Interface(predict,[gr.inputs.Image(type='filepath'),gr.inputs.Image(type='filepath'),gr.inputs.Slider(minimum=2,maximum=5,step=1)],"playable_video",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)