Update app.py
Browse files
app.py
CHANGED
@@ -87,10 +87,10 @@ def get_frames(video_in, step, name, resize_w):
|
|
87 |
|
88 |
def create_video(frames, fps, type):
|
89 |
print("building video result")
|
90 |
-
clip = ImageSequenceClip(frames, fps=fps
|
91 |
-
clip.
|
92 |
|
93 |
-
return type + "_result.
|
94 |
|
95 |
|
96 |
def infer(url_in,interpolation,fps_output,resize_n,winsize,o_flow):
|
@@ -241,9 +241,9 @@ with gr.Blocks() as demo:
|
|
241 |
submit_btn = gr.Button("Submit")
|
242 |
|
243 |
with gr.Column():
|
244 |
-
video_output = gr.
|
245 |
file_output = gr.File()
|
246 |
-
depth_output = gr.
|
247 |
|
248 |
gr.Examples(
|
249 |
examples=[["./examples/streetview.mp4", 1, 0, 256, 15, True]],
|
|
|
87 |
|
88 |
def create_video(frames, fps, type):
|
89 |
print("building video result")
|
90 |
+
clip = ImageSequenceClip(frames, fps=fps)
|
91 |
+
clip.write_gif(type + "_result.gif", fps=fps)
|
92 |
|
93 |
+
return type + "_result.gif"
|
94 |
|
95 |
|
96 |
def infer(url_in,interpolation,fps_output,resize_n,winsize,o_flow):
|
|
|
241 |
submit_btn = gr.Button("Submit")
|
242 |
|
243 |
with gr.Column():
|
244 |
+
video_output = gr.Image()
|
245 |
file_output = gr.File()
|
246 |
+
depth_output = gr.Image()
|
247 |
|
248 |
gr.Examples(
|
249 |
examples=[["./examples/streetview.mp4", 1, 0, 256, 15, True]],
|