Spaces:
Running
on
Zero
Running
on
Zero
Martin Tomov
commited on
default_image_url update app.py
Browse files
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()
|