Gosula commited on
Commit
e9b3dc2
1 Parent(s): a68f004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ model = Cnn()
49
  model_weights_path = 'model_weights.pth'
50
 
51
  # Load the model weights
52
- model.load_state_dict(torch.load(model_weights_path))
53
 
54
  # Set the model to evaluation mode for inference
55
  model.eval()
 
49
  model_weights_path = 'model_weights.pth'
50
 
51
  # Load the model weights
52
+ model.load_state_dict(torch.load(model_weights_path),map_location=torch.device('cpu') )
53
 
54
  # Set the model to evaluation mode for inference
55
  model.eval()