Martin Tomov commited on
Commit
ceceed1
Β·
verified Β·
1 Parent(s): b3f552a

default_image_url update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -193,9 +193,11 @@ 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
  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()
 
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/qZOnNAC.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()