Spaces:
Running
on
Zero
Running
on
Zero
Martin Tomov
commited on
revert to stable v1.1
Browse files
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"
|
201 |
-
outputs=[gr.Image(type="numpy"
|
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()
|