Schattenn commited on
Commit
51563bd
·
verified ·
1 Parent(s): 6ed51ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('yolov8n.pt')
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):