Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,19 +66,13 @@ with gr.Blocks() as demo:
|
|
| 66 |
|
| 67 |
with gr.Row():
|
| 68 |
with gr.Column():
|
| 69 |
-
gr.
|
| 70 |
-
input_image = gr.Image(type="pil", label=None)
|
| 71 |
submit_button = gr.Button("Submit")
|
| 72 |
|
| 73 |
with gr.Column():
|
| 74 |
-
gr.
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
gr.Markdown("### SAM")
|
| 78 |
-
sam_output = gr.Gallery(label=None, type="numpy")
|
| 79 |
-
|
| 80 |
-
gr.Markdown("### Depth-Anything")
|
| 81 |
-
depth_anything_output = gr.Gallery(label=None, type="numpy")
|
| 82 |
|
| 83 |
submit_button.click(run_theia, inputs=input_image, outputs=[dinov2_output, sam_output, depth_anything_output])
|
| 84 |
|
|
|
|
| 66 |
|
| 67 |
with gr.Row():
|
| 68 |
with gr.Column():
|
| 69 |
+
input_image = gr.Image(label="Input Image", type="pil")
|
|
|
|
| 70 |
submit_button = gr.Button("Submit")
|
| 71 |
|
| 72 |
with gr.Column():
|
| 73 |
+
dinov2_output = gr.Gallery(label="DINOv2", type="numpy")
|
| 74 |
+
sam_output = gr.Gallery(label="SAM", type="numpy")
|
| 75 |
+
depth_anything_output = gr.Gallery(label="Depth-Anything", type="numpy")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
submit_button.click(run_theia, inputs=input_image, outputs=[dinov2_output, sam_output, depth_anything_output])
|
| 78 |
|