Spaces:
Running
Running
Update app.py
Browse files
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.
|
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
|