Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ model = Transformer(
|
|
30 |
m = model.to(DEVICE)
|
31 |
# print the number of parameters in the model
|
32 |
|
33 |
-
m.load_state_dict(torch.load("
|
34 |
m.eval()
|
35 |
|
36 |
#print(
|
|
|
30 |
m = model.to(DEVICE)
|
31 |
# print the number of parameters in the model
|
32 |
|
33 |
+
m.load_state_dict(torch.load("base_model.pth", map_location=torch.device(DEVICE)))
|
34 |
m.eval()
|
35 |
|
36 |
#print(
|