Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def create_video(frames, fps, type):
|
|
90 |
return type + "_result.mp4"
|
91 |
|
92 |
|
93 |
-
def infer(url_in,interpolation,resize
|
94 |
|
95 |
fps_output = logscale(fps_output)
|
96 |
# 1. break video into frames and get FPS
|
@@ -211,11 +211,11 @@ with gr.Blocks() as demo:
|
|
211 |
gr.Examples(
|
212 |
examples=[["./examples/streetview.mp4", 1, 1]],
|
213 |
fn=infer,
|
214 |
-
inputs=[url_input,interpolation_slider,resize_num
|
215 |
outputs=[video_output,file_output,depth_output],
|
216 |
cache_examples=True
|
217 |
)
|
218 |
|
219 |
-
submit_btn.click(fn=infer, inputs=[url_input,interpolation_slider,resize_num
|
220 |
|
221 |
demo.launch()
|
|
|
90 |
return type + "_result.mp4"
|
91 |
|
92 |
|
93 |
+
def infer(url_in,interpolation,fps_output,resize):
|
94 |
|
95 |
fps_output = logscale(fps_output)
|
96 |
# 1. break video into frames and get FPS
|
|
|
211 |
gr.Examples(
|
212 |
examples=[["./examples/streetview.mp4", 1, 1]],
|
213 |
fn=infer,
|
214 |
+
inputs=[url_input,interpolation_slider,fps_output_slider,resize_num],
|
215 |
outputs=[video_output,file_output,depth_output],
|
216 |
cache_examples=True
|
217 |
)
|
218 |
|
219 |
+
submit_btn.click(fn=infer, inputs=[url_input,interpolation_slider,fps_output_slider,resize_num], outputs=[video_output, file_output, depth_output])
|
220 |
|
221 |
demo.launch()
|