Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -115,6 +115,10 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
|
|
115 |
out.release()
|
116 |
return output_path
|
117 |
|
|
|
|
|
|
|
|
|
118 |
css = """
|
119 |
#img-display-container {
|
120 |
max-height: 100vh;
|
@@ -158,6 +162,8 @@ with gr.Blocks(css=css) as demo:
|
|
158 |
|
159 |
with gr.Row():
|
160 |
with gr.Column():
|
|
|
|
|
161 |
input_video = gr.Video(label="Input Video")
|
162 |
submit = gr.Button("Submit")
|
163 |
with gr.Column():
|
|
|
115 |
out.release()
|
116 |
return output_path
|
117 |
|
118 |
+
def loadurl(url):
|
119 |
+
return url
|
120 |
+
|
121 |
+
|
122 |
css = """
|
123 |
#img-display-container {
|
124 |
max-height: 100vh;
|
|
|
162 |
|
163 |
with gr.Row():
|
164 |
with gr.Column():
|
165 |
+
input_url = gr.Textbox(value="./examples/streetview.mp4", label="URL")
|
166 |
+
input_url.change(fn=loadurl, inputs=[input_url], outputs=[input_video])
|
167 |
input_video = gr.Video(label="Input Video")
|
168 |
submit = gr.Button("Submit")
|
169 |
with gr.Column():
|