Spaces:
Sleeping
Sleeping
jyfgyjsgf
Browse files
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 = [
|