fffiloni commited on
Commit
6332f55
1 Parent(s): 1425010

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,10 +26,10 @@ mediapy.set_ffmpeg(ffmpeg_path)
26
 
27
 
28
 
29
- def interpolate(frame1, frame2, times_to_interpolate):
30
 
31
  input_frames = [frame1, frame2]
32
-
33
  frames = list(
34
  util.interpolate_recursively_from_files(
35
  input_frames, times_to_interpolate, interpolator))
@@ -44,4 +44,4 @@ description="<p style='text-align: center'>This is a fork of the Gradio demo for
44
  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>"
45
  custom_css = "style.css"
46
 
47
- gr.Interface(interpolate,[gr.Image(source="upload", type="filepath"),gr.Image(source="upload", type="filepath"),2],outputs=[gr.Textbox()],title=title,description=description,article=article,css=custom_css).launch(enable_queue=True)
 
26
 
27
 
28
 
29
+ def interpolate(frame1, frame2):
30
 
31
  input_frames = [frame1, frame2]
32
+ times_to_interpolate = 2
33
  frames = list(
34
  util.interpolate_recursively_from_files(
35
  input_frames, times_to_interpolate, interpolator))
 
44
  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>"
45
  custom_css = "style.css"
46
 
47
+ gr.Interface(interpolate,[gr.Image(source="upload", type="filepath"),gr.Image(source="upload", type="filepath")],outputs=[gr.Textbox()],title=title,description=description,article=article,css=custom_css).launch(enable_queue=True)