Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -340,12 +340,8 @@ with gr.Blocks(css=css) as demo:
|
|
340 |
|
341 |
with gr.Row():
|
342 |
with gr.Column():
|
343 |
-
|
344 |
-
|
345 |
-
50.07377647505558,14.437161000659017
|
346 |
-
50.07379496839027,14.437148958238538
|
347 |
-
50.073823157821664,14.437124189538856
|
348 |
-
""", label="Coordinates")
|
349 |
input_url = gr.Textbox(value="./examples/streetview.mp4", label="URL")
|
350 |
input_video = gr.Video(label="Input Video", format="mp4")
|
351 |
input_url.change(fn=loadurl, inputs=[input_url], outputs=[input_video])
|
@@ -548,7 +544,8 @@ with gr.Blocks(css=css) as demo:
|
|
548 |
example_files = os.listdir('examples')
|
549 |
example_files.sort()
|
550 |
example_files = [os.path.join('examples', filename) for filename in example_files]
|
551 |
-
|
|
|
552 |
|
553 |
|
554 |
if __name__ == '__main__':
|
|
|
340 |
|
341 |
with gr.Row():
|
342 |
with gr.Column():
|
343 |
+
with gr.Accordion(label="Locations", open=False):
|
344 |
+
coords = gr.Textbox(value="50.07379596793083,14.437146122950555 50.073799567020004,14.43714677424050 50.07377647505558,14.437161000659017 50.07379496839027,14.437148958238538 50.073823157821664,14.437124189538856", label="Precise coordinates", show_label=False)
|
|
|
|
|
|
|
|
|
345 |
input_url = gr.Textbox(value="./examples/streetview.mp4", label="URL")
|
346 |
input_video = gr.Video(label="Input Video", format="mp4")
|
347 |
input_url.change(fn=loadurl, inputs=[input_url], outputs=[input_video])
|
|
|
544 |
example_files = os.listdir('examples')
|
545 |
example_files.sort()
|
546 |
example_files = [os.path.join('examples', filename) for filename in example_files]
|
547 |
+
|
548 |
+
examples = gr.Examples(examples=[example_files, 'vits', coords], inputs=[input_video, model_type, coords], outputs=[processed_video, processed_zip, output_frame, output_depth], fn=on_submit, cache_examples=True)
|
549 |
|
550 |
|
551 |
if __name__ == '__main__':
|