CheRy01 commited on
Commit
9b22c75
1 Parent(s): 311bdf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def load_model(file_path):
13
  model = project.version(3).model
14
 
15
  # Load the model weights into a PyTorch model
16
- pytorch_model = YOLO('yolov8n.yaml')
17
  pytorch_model.load_state_dict(torch.load(file_path, map_location=torch.device('cpu')))
18
  pytorch_model.eval()
19
 
 
13
  model = project.version(3).model
14
 
15
  # Load the model weights into a PyTorch model
16
+ pytorch_model = YOLO('args.yaml')
17
  pytorch_model.load_state_dict(torch.load(file_path, map_location=torch.device('cpu')))
18
  pytorch_model.eval()
19