Update app.py
Browse files
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()
|