Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,6 @@ from ultralytics import YOLO
|
|
| 8 |
# Download model if not present
|
| 9 |
model_path ="best.pt"
|
| 10 |
|
| 11 |
-
# Load YOLOv8 model
|
| 12 |
-
model = YOLO("best.pt")
|
| 13 |
-
|
| 14 |
def detect(image):
|
| 15 |
results = model(image)
|
| 16 |
annotated_image = results[0].plot() # draw boxes
|
|
|
|
| 8 |
# Download model if not present
|
| 9 |
model_path ="best.pt"
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
def detect(image):
|
| 12 |
results = model(image)
|
| 13 |
annotated_image = results[0].plot() # draw boxes
|