Update app.py
Browse files
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 |
|