Martin Tomov commited on
Commit
1ee52ff
Β·
verified Β·
1 Parent(s): cedb65b

revert to stable v1.1

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -193,11 +193,9 @@ def process_image(image):
193
  yellow_background_with_boxes = draw_classification_boxes(yellow_background_with_insects.copy(), detections)
194
  return annotated_image, yellow_background_with_boxes
195
 
196
- default_image_url = "https://i.imgur.com/kOtvNjJ.jpeg"
197
-
198
  gr.Interface(
199
  fn=process_image,
200
- inputs=gr.Image(type="pil", label="Input Image", default=default_image_url),
201
- outputs=[gr.Image(type="numpy", label="Annotated Image"), gr.Image(type="numpy", label="Yellow Background with Insects")],
202
  title="🐞 InsectSAM + GroundingDINO Inference",
203
- ).launch()
 
193
  yellow_background_with_boxes = draw_classification_boxes(yellow_background_with_insects.copy(), detections)
194
  return annotated_image, yellow_background_with_boxes
195
 
 
 
196
  gr.Interface(
197
  fn=process_image,
198
+ inputs=gr.Image(type="pil"),
199
+ outputs=[gr.Image(type="numpy"), gr.Image(type="numpy")],
200
  title="🐞 InsectSAM + GroundingDINO Inference",
201
+ ).launch()