Spaces:
Running
Running
Commit
•
d263e6c
1
Parent(s):
d357fb7
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ def predict(input_text):
|
|
9 |
for p in predictions:
|
10 |
review = "POSITIVE" if p["label"] == "LABEL_1" else "NEGATIVE"
|
11 |
result.append({
|
12 |
-
"
|
13 |
-
"
|
14 |
})
|
15 |
return result
|
16 |
|
|
|
9 |
for p in predictions:
|
10 |
review = "POSITIVE" if p["label"] == "LABEL_1" else "NEGATIVE"
|
11 |
result.append({
|
12 |
+
"SENTIMENT": review,
|
13 |
+
"SCORE": p["score"]
|
14 |
})
|
15 |
return result
|
16 |
|