taher30 commited on
Commit
c47cea1
·
verified ·
1 Parent(s): b6b752a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,8 +37,8 @@ def get_masks(model_type, image):
37
 
38
  iface = gr.Interface(
39
  fn=get_masks,
40
- inputs=[gr.inputs.Image(type="pil"), gr.inputs.Dropdown(['vit_h', 'vit_b', 'vit_l'], label="Model Type")],
41
- outputs=gr.outputs.Image(type="pil"),
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
  )