Update Predict.py
Browse files- Predict.py +1 -1
Predict.py
CHANGED
@@ -12,7 +12,7 @@ with open('answer.json', 'r', encoding = 'utf8') as f:
|
|
12 |
swap_space = {v : k for k, v in answer_space.items()}
|
13 |
|
14 |
|
15 |
-
device = torch.device('
|
16 |
model = BaseModel().to(device)
|
17 |
model.load_state_dict(checkpoint['model_state_dict'], map_locaption = device)
|
18 |
|
|
|
12 |
swap_space = {v : k for k, v in answer_space.items()}
|
13 |
|
14 |
|
15 |
+
device = torch.device('cpu')
|
16 |
model = BaseModel().to(device)
|
17 |
model.load_state_dict(checkpoint['model_state_dict'], map_locaption = device)
|
18 |
|