Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ model = YOLO(model_path, task="detect")
|
|
| 8 |
|
| 9 |
def predict(image):
|
| 10 |
global model
|
| 11 |
-
results = model.predict(image, imgsz=
|
| 12 |
annotator = Annotator(image)
|
| 13 |
for r in results:
|
| 14 |
boxes = r.boxes
|
|
|
|
| 8 |
|
| 9 |
def predict(image):
|
| 10 |
global model
|
| 11 |
+
results = model.predict(image, imgsz=1280, conf=0.2)
|
| 12 |
annotator = Annotator(image)
|
| 13 |
for r in results:
|
| 14 |
boxes = r.boxes
|