Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ model = None
|
|
| 8 |
|
| 9 |
def predict_image(img):
|
| 10 |
"""Predicts objects in an image using a YOLOv8 model with adjustable confidence and IOU thresholds."""
|
| 11 |
-
model = YOLO("best")
|
| 12 |
# model.predict(source=img, save=True)
|
| 13 |
results = model.predict(
|
| 14 |
source=img,
|
|
|
|
| 8 |
|
| 9 |
def predict_image(img):
|
| 10 |
"""Predicts objects in an image using a YOLOv8 model with adjustable confidence and IOU thresholds."""
|
| 11 |
+
model = YOLO("best.pt")
|
| 12 |
# model.predict(source=img, save=True)
|
| 13 |
results = model.predict(
|
| 14 |
source=img,
|