Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def run_yolo(image: Image.Image):
|
|
| 56 |
if not yolo_model:
|
| 57 |
raise HTTPException(status_code=500, detail="YOLO model not loaded")
|
| 58 |
|
| 59 |
-
results = yolo_model(image)
|
| 60 |
|
| 61 |
detections = []
|
| 62 |
summary = {}
|
|
|
|
| 56 |
if not yolo_model:
|
| 57 |
raise HTTPException(status_code=500, detail="YOLO model not loaded")
|
| 58 |
|
| 59 |
+
results = yolo_model(image, conf=0.4, iou=0.45)
|
| 60 |
|
| 61 |
detections = []
|
| 62 |
summary = {}
|