Spaces:
Runtime error
Runtime error
Commit
·
e7f55d6
1
Parent(s):
b025479
Changed for cpu
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ class LeNet(nn.Module):
|
|
| 39 |
|
| 40 |
# LOADING MODEL
|
| 41 |
model = LeNet().to(device)
|
| 42 |
-
model.load_state_dict(torch.load("model_mnist.pth", map_location=torch.device('
|
| 43 |
|
| 44 |
|
| 45 |
def predict(input):
|
|
|
|
| 39 |
|
| 40 |
# LOADING MODEL
|
| 41 |
model = LeNet().to(device)
|
| 42 |
+
model.load_state_dict(torch.load("model_mnist.pth", map_location=torch.device('cpu')))
|
| 43 |
|
| 44 |
|
| 45 |
def predict(input):
|