kaitehtzeng commited on
Commit
c3ef27a
1 Parent(s): a70d1ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ class MeanPooling(nn.Module):
133
  return mean_embedding
134
 
135
  model = mymodel(config)
136
- model.load_state_dict(torch.load('my_model.pth'))
137
  model.eval()
138
 
139
  #preds = []
 
133
  return mean_embedding
134
 
135
  model = mymodel(config)
136
+ model.load_state_dict(torch.load('my_model.pth',map_location=torch.device('cpu') ))
137
  model.eval()
138
 
139
  #preds = []