Spaces:
Sleeping
Sleeping
Commit
·
f643792
1
Parent(s):
9b3af55
fixed app.py bug
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ device = "cpu"
|
|
20 |
|
21 |
checkpoint_path = "model_bin.pth"
|
22 |
checkpoint = torch.load(checkpoint_path, map_location=device)
|
23 |
-
model.load_state_dict(checkpoint['model_state_dict'])
|
|
|
24 |
model.to(device)
|
25 |
model.eval()
|
26 |
|
|
|
20 |
|
21 |
checkpoint_path = "model_bin.pth"
|
22 |
checkpoint = torch.load(checkpoint_path, map_location=device)
|
23 |
+
#model.load_state_dict(checkpoint['model_state_dict'])
|
24 |
+
model.load_state_dict(torch.load(checkpoint_path, map_location=device))
|
25 |
model.to(device)
|
26 |
model.eval()
|
27 |
|