muellerzr HF staff commited on
Commit
42cc6f1
1 Parent(s): ef5e878
Files changed (1) hide show
  1. src/app.py +1 -1
src/app.py CHANGED
@@ -25,7 +25,7 @@ vocab = [
25
 
26
 
27
  model = get_model()
28
- state = torch.load('exported_model.pth', map_location="cpu")["model"]
29
  apply_weights(model, state, copy_weight)
30
 
31
  to_tensor = ToTensor()
 
25
 
26
 
27
  model = get_model()
28
+ state = torch.load('exported_model.pth', map_location="cpu")
29
  apply_weights(model, state, copy_weight)
30
 
31
  to_tensor = ToTensor()