akhaliq HF staff commited on
Commit
a7a270f
1 Parent(s): f71df3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  os.system("git clone https://github.com/google-research/frame-interpolation")
3
  import sys
4
  sys.path.append("frame-interpolation")
@@ -68,4 +69,4 @@ title="frame-interpolation"
68
  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."
69
  article = "<p style='text-align: center'><a href='https://film-net.github.io/' target='_blank'>FILM: Frame Interpolation for Large Motion</a> | <a href='https://github.com/google-research/frame-interpolation' target='_blank'>Github Repo</a></p>"
70
  examples=[['cat3.jpeg','cat4.jpeg',2]]
71
- gr.Interface(predict,[gr.inputs.Image(type='filepath'),gr.inputs.Image(type='filepath'),gr.inputs.Slider(minimum=2,maximum=8,step=1)],"playable_video",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
 
1
  import os
2
+ os.system("pip install gradio==2.7.5.2")
3
  os.system("git clone https://github.com/google-research/frame-interpolation")
4
  import sys
5
  sys.path.append("frame-interpolation")
 
69
  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."
70
  article = "<p style='text-align: center'><a href='https://film-net.github.io/' target='_blank'>FILM: Frame Interpolation for Large Motion</a> | <a href='https://github.com/google-research/frame-interpolation' target='_blank'>Github Repo</a></p>"
71
  examples=[['cat3.jpeg','cat4.jpeg',2]]
72
+ gr.Interface(predict,[gr.inputs.Image(type='filepath'),gr.inputs.Image(type='filepath'),gr.inputs.Slider(minimum=2,maximum=8,step=1)],"playable_video",title=title,description=description,article=article,examples=examples).launch(enable_queue=True,cache_examples=True)