Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,12 +70,13 @@ 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],
|
|
|
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 |
+
return frames
|
76 |
+
|
77 |
title="sketch-frame-interpolation"
|
78 |
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."
|
79 |
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>"
|
80 |
custom_css = "style.css"
|
81 |
|
82 |
+
gr.Interface(predict,[sketch1,sketch2,slider],gr.Gallery(value=frames),title=title,description=description,article=article, css=custom_css).launch(enable_queue=True)
|