SamDaLamb commited on
Commit
dc9a3ca
·
verified ·
1 Parent(s): db8b4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ from io import BytesIO
22
  # Load the YOLO model
23
  from models.common import DetectMultiBackend
24
 
25
- weights_path = "./best.pt"
26
  device = torch.device("cpu") # Correctly define the device
27
  model = torch.jit.load(weights_path)
28
  # model.eval() # Load YOLOv5 model correctly
 
22
  # Load the YOLO model
23
  from models.common import DetectMultiBackend
24
 
25
+ weights_path = "./best.torchscript"
26
  device = torch.device("cpu") # Correctly define the device
27
  model = torch.jit.load(weights_path)
28
  # model.eval() # Load YOLOv5 model correctly