Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
8 |
print(f"Using device: {device}")
|
9 |
|
10 |
# Load the YOLOv8 model from the 'model' directory
|
11 |
-
model = YOLO('
|
12 |
model.to(device)
|
13 |
|
14 |
def detect_objects(image):
|
|
|
8 |
print(f"Using device: {device}")
|
9 |
|
10 |
# Load the YOLOv8 model from the 'model' directory
|
11 |
+
model = YOLO('best.pt')
|
12 |
model.to(device)
|
13 |
|
14 |
def detect_objects(image):
|