Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def get_masks(model_type, image):
|
|
37 |
|
38 |
iface = gr.Interface(
|
39 |
fn=get_masks,
|
40 |
-
inputs=[
|
41 |
-
outputs=
|
42 |
title="SAM Model Segmentation and Classification",
|
43 |
description="Upload an image, select a model type, and receive the segmented and classified parts."
|
44 |
)
|
|
|
37 |
|
38 |
iface = gr.Interface(
|
39 |
fn=get_masks,
|
40 |
+
inputs=["image", gr.components.Dropdown(choices=['vit_h', 'vit_b', 'vit_l'], label="Model Type")],
|
41 |
+
outputs="image",
|
42 |
title="SAM Model Segmentation and Classification",
|
43 |
description="Upload an image, select a model type, and receive the segmented and classified parts."
|
44 |
)
|