Rounak28 commited on
Commit
faf1760
1 Parent(s): 375800a
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from model import NeuralNet
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
12
  model = NeuralNet().to(device)
13
- model.load_state_dict(torch.load("models/model.pth"))
14
 
15
 
16
  labels = [
 
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
12
  model = NeuralNet().to(device)
13
+ model.load_state_dict(torch.load("models/model.pth", map_location=torch.device('cpu')))
14
 
15
 
16
  labels = [