Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ with open('model.pkl', 'rb') as f:
|
|
14 |
|
15 |
def predict(model, sentence):
|
16 |
output = model.predict([sentence])
|
17 |
-
result = output.
|
18 |
|
19 |
categories = {
|
20 |
0: "WEAK",
|
|
|
14 |
|
15 |
def predict(model, sentence):
|
16 |
output = model.predict([sentence])
|
17 |
+
result = output.item()
|
18 |
|
19 |
categories = {
|
20 |
0: "WEAK",
|