Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ model = YOLO('Models/yolov8m.pt')
|
|
16 |
|
17 |
checkpoints = torch.load('Models/haze_detection.pt', map_location=device)
|
18 |
|
19 |
-
model.
|
20 |
|
21 |
model = model.to(device)
|
22 |
|
|
|
16 |
|
17 |
checkpoints = torch.load('Models/haze_detection.pt', map_location=device)
|
18 |
|
19 |
+
model.load(checkpoints)
|
20 |
|
21 |
model = model.to(device)
|
22 |
|