windy2612 commited on
Commit
7ae4908
1 Parent(s): 243445e

Update Predict.py

Browse files
Files changed (1) hide show
  1. 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('cuda' if torch.cuda.is_available() else 'cpu')
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