Spaces:
Runtime error
Runtime error
fixing cuda error
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ to_device(model, device);
|
|
105 |
|
106 |
# loading the model
|
107 |
ckp_path = 'indianFood-resnet50.pth'
|
108 |
-
model.load_state_dict(torch.load(ckp_path), map_location=
|
109 |
model.eval()
|
110 |
|
111 |
|
|
|
105 |
|
106 |
# loading the model
|
107 |
ckp_path = 'indianFood-resnet50.pth'
|
108 |
+
model.load_state_dict(torch.load(ckp_path), map_location={'cuda': 'cpu'})
|
109 |
model.eval()
|
110 |
|
111 |
|