junhyun01 commited on
Commit
d747df2
1 Parent(s): 8854d9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def paragraph_leveling(text):
22
  return out
23
 
24
  classifier = MLP(target_size=3, input_size=768)
25
- classifier.load_state_dict(torch.load('./trained_model/fine_tunning_classifier'))
26
  classifier.to('cpu')
27
  classifier.eval()
28
 
 
22
  return out
23
 
24
  classifier = MLP(target_size=3, input_size=768)
25
+ classifier.load_state_dict(torch.load('./trained_model/fine_tunning_classifier', map_location=torch.device('cpu')))
26
  classifier.to('cpu')
27
  classifier.eval()
28