Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from ultralytics import YOLO
|
|
3 |
from PIL import Image
|
4 |
|
5 |
# Load the trained YOLOv8 model
|
6 |
-
model = YOLO(
|
7 |
|
8 |
# Define the prediction function
|
9 |
def predict(image):
|
|
|
3 |
from PIL import Image
|
4 |
|
5 |
# Load the trained YOLOv8 model
|
6 |
+
model = YOLO("best.pt")
|
7 |
|
8 |
# Define the prediction function
|
9 |
def predict(image):
|