Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,10 @@ def predict(sentence: str):
|
|
10 |
"1": float(prob[1][0][2]),
|
11 |
"0": float(prob[1][0][1]),
|
12 |
"-1": float(prob[1][0][0]),
|
13 |
-
"Communication": float(prob[0][0][
|
14 |
-
"Quality": float(prob[0][0][
|
15 |
-
"Price": float(prob[0][0][
|
16 |
-
"Safety": float(prob[0][0][
|
17 |
}
|
18 |
return (
|
19 |
df["1"],
|
|
|
10 |
"1": float(prob[1][0][2]),
|
11 |
"0": float(prob[1][0][1]),
|
12 |
"-1": float(prob[1][0][0]),
|
13 |
+
"Communication": float(prob[0][0][1]),
|
14 |
+
"Quality": float(prob[0][0][2]),
|
15 |
+
"Price": float(prob[0][0][3]),
|
16 |
+
"Safety": float(prob[0][0][4]),
|
17 |
}
|
18 |
return (
|
19 |
df["1"],
|