kaitehtzeng commited on
Commit
81cd130
1 Parent(s): 6bc9b7f

Update app.py

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