small fix
Browse files
app.py
CHANGED
|
@@ -49,7 +49,6 @@ def process_image(image_input, text_input) -> Optional[Image.Image]:
|
|
| 49 |
resolution_wh=image_input.size
|
| 50 |
)
|
| 51 |
detections = run_sam_inference(SAM_IMAGE_MODEL, image_input, detections)
|
| 52 |
-
detections = run_sam_inference(SAM_IMAGE_MODEL, image_input, detections)
|
| 53 |
if len(detections) == 0:
|
| 54 |
gr.Info("No objects detected.")
|
| 55 |
return None
|
|
|
|
| 49 |
resolution_wh=image_input.size
|
| 50 |
)
|
| 51 |
detections = run_sam_inference(SAM_IMAGE_MODEL, image_input, detections)
|
|
|
|
| 52 |
if len(detections) == 0:
|
| 53 |
gr.Info("No objects detected.")
|
| 54 |
return None
|