Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ print('Loading model checkpoint...')
|
|
116 |
|
117 |
model_path = 'Popular_Hook_Transformer_Small_Trained_Model_10869_steps_0.2308_loss_0.9252_acc.pth'
|
118 |
|
119 |
-
model.load_state_dict(torch.load(model_path))
|
120 |
|
121 |
print('=' * 70)
|
122 |
|
|
|
116 |
|
117 |
model_path = 'Popular_Hook_Transformer_Small_Trained_Model_10869_steps_0.2308_loss_0.9252_acc.pth'
|
118 |
|
119 |
+
model.load_state_dict(torch.load(model_path, map_location=DEVICE))
|
120 |
|
121 |
print('=' * 70)
|
122 |
|