Spaces:
Runtime error
Runtime error
Initial Commit
Browse files
app.py
CHANGED
|
@@ -52,15 +52,16 @@ with my_app:
|
|
| 52 |
with gr.Column():
|
| 53 |
with gr.Row():
|
| 54 |
img_source = gr.Image(label="Please select picture and click the part to segment",
|
| 55 |
-
value='./images/truck.jpg',
|
| 56 |
with gr.Row():
|
| 57 |
coords = gr.Label(label="Image Coordinate")
|
| 58 |
-
|
|
|
|
|
|
|
| 59 |
with gr.Row():
|
| 60 |
-
infer = gr.Button(label="Segment")
|
| 61 |
score = gr.Label(label="Mask Confidence")
|
| 62 |
with gr.Row():
|
| 63 |
-
img_output = gr.Image(label="Output Mask",
|
| 64 |
|
| 65 |
img_source.select(get_coords, [], coords)
|
| 66 |
infer.click(
|
|
|
|
| 52 |
with gr.Column():
|
| 53 |
with gr.Row():
|
| 54 |
img_source = gr.Image(label="Please select picture and click the part to segment",
|
| 55 |
+
value='./images/truck.jpg').style(height=500, width=1000)
|
| 56 |
with gr.Row():
|
| 57 |
coords = gr.Label(label="Image Coordinate")
|
| 58 |
+
with gr.Column():
|
| 59 |
+
model_choice = gr.Dropdown(['ViT-base', 'ViT-large', 'ViT-huge'], label='Model Backbone')
|
| 60 |
+
infer = gr.Button(label="Segment")
|
| 61 |
with gr.Row():
|
|
|
|
| 62 |
score = gr.Label(label="Mask Confidence")
|
| 63 |
with gr.Row():
|
| 64 |
+
img_output = gr.Image(label="Output Mask").style(height=500, width=1000)
|
| 65 |
|
| 66 |
img_source.select(get_coords, [], coords)
|
| 67 |
infer.click(
|