akhaliq HF staff commited on
Commit
6d220a8
1 Parent(s): d5a9525

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -17,8 +17,6 @@ LARGE_ENOUGH_NUMBER = 100
17
  PngImagePlugin.MAX_TEXT_CHUNK = LARGE_ENOUGH_NUMBER * (1024**2)
18
 
19
 
20
- os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/one.png")
21
- os.system("wget https://raw.githubusercontent.com/google-research/frame-interpolation/main/photos/two.png")
22
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
23
 
24
  interpolator = interpolator.Interpolator(model, None)
@@ -54,5 +52,5 @@ def predict(frame1, frame2, times_to_interpolate):
54
  title="frame-interpolation"
55
  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."
56
  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>"
57
- examples=[['one.png','two.png',2]]
58
  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)
 
17
  PngImagePlugin.MAX_TEXT_CHUNK = LARGE_ENOUGH_NUMBER * (1024**2)
18
 
19
 
 
 
20
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
21
 
22
  interpolator = interpolator.Interpolator(model, None)
 
52
  title="frame-interpolation"
53
  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."
54
  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>"
55
+ examples=[['cat3.jpeg','cat4.jpeg',2]]
56
  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)