fmajer commited on
Commit
5392e1d
·
1 Parent(s): 674705a

changed target dir

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ model = Model(vit, roberta, tokenizer, device).to(device)
27
  model.eval()
28
 
29
  # Initialize trained model
30
- state = torch.load('saved_model')
31
  model.load_state_dict(state['val_model_dict'])
32
 
33
  # Transform for input image
 
27
  model.eval()
28
 
29
  # Initialize trained model
30
+ state = torch.load('saved_model', map_location=torch.device('cpu'))
31
  model.load_state_dict(state['val_model_dict'])
32
 
33
  # Transform for input image