Spaces:
Runtime error
Runtime error
Commit
•
955a6c8
1
Parent(s):
352195e
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ model = nn.Sequential(
|
|
98 |
nn.Dropout(0.05) # Dropout
|
99 |
)
|
100 |
|
101 |
-
model.load_state_dict(torch.load("large.pth"
|
102 |
model.eval()
|
103 |
|
104 |
|
|
|
98 |
nn.Dropout(0.05) # Dropout
|
99 |
)
|
100 |
|
101 |
+
model.load_state_dict(torch.load("large.pth", map_location=torch.device('cpu')))
|
102 |
model.eval()
|
103 |
|
104 |
|