fffiloni commited on
Commit
26561dc
β€’
1 Parent(s): 075d904

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,12 +70,12 @@ def predict(frame1, frame2, times_to_interpolate):
70
  util.interpolate_recursively_from_files(
71
  input_frames, times_to_interpolate, interpolator))
72
  print(frames)
73
- mediapy.write_video("out.mp4", frames, fps=30)
74
- return "out.mp4"
75
 
76
  title="sketch-frame-interpolation"
77
  description="This is a fork of the Gradio demo for FILM: Frame Interpolation for Large Scene Motion from @akhaliq, but using sketches instead of images. This could be very useful for the animation industry :) <br /> To use it, simply draw your sketches and add the times to interpolate number. Read more at the links below."
78
  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>"
79
  custom_css = "style.css"
80
 
81
- gr.Interface(predict,[sketch1,sketch2,slider],"playable_video",title=title,description=description,article=article, css=custom_css).launch(enable_queue=True)
 
70
  util.interpolate_recursively_from_files(
71
  input_frames, times_to_interpolate, interpolator))
72
  print(frames)
73
+ #mediapy.write_video("out.mp4", frames, fps=30)
74
+ return frames
75
 
76
  title="sketch-frame-interpolation"
77
  description="This is a fork of the Gradio demo for FILM: Frame Interpolation for Large Scene Motion from @akhaliq, but using sketches instead of images. This could be very useful for the animation industry :) <br /> To use it, simply draw your sketches and add the times to interpolate number. Read more at the links below."
78
  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>"
79
  custom_css = "style.css"
80
 
81
+ gr.Interface(predict,[sketch1,sketch2,slider],"gallery",title=title,description=description,article=article, css=custom_css).launch(enable_queue=True)