fffiloni commited on
Commit
7c5e3d2
β€’
1 Parent(s): 8ff5b8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,7 +108,7 @@ def predict(frame1, frame2, times_to_interpolate):
108
  print (f"DURATION: {frameCount/videoFPS}")
109
  print (videoArray)
110
 
111
- return "out.mp4"
112
 
113
 
114
 
@@ -117,4 +117,4 @@ description="This is a fork of the Gradio demo for FILM: Frame Interpolation for
117
  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>"
118
  custom_css = "style.css"
119
 
120
- gr.Interface(predict,[sketch1,sketch2,slider],'playable_video',title=title,description=description,article=article, css=custom_css).launch(enable_queue=True)
 
108
  print (f"DURATION: {frameCount/videoFPS}")
109
  print (videoArray)
110
 
111
+ return "out.mp4", videoArray
112
 
113
 
114
 
 
117
  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>"
118
  custom_css = "style.css"
119
 
120
+ gr.Interface(predict,[sketch1,sketch2,slider],outputs=["playable_video", "gallery"],title=title,description=description,article=article, css=custom_css).launch(enable_queue=True)