Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,11 +18,13 @@ def predict_sentiment(text):
|
|
| 18 |
# Optional: make prediction readable
|
| 19 |
if prediction == 1:
|
| 20 |
label = "π Positive"
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
else:
|
| 24 |
label = "π Negative"
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
return label
|
| 27 |
|
| 28 |
# Gradio Interface
|
|
|
|
| 18 |
# Optional: make prediction readable
|
| 19 |
if prediction == 1:
|
| 20 |
label = "π Positive"
|
| 21 |
+
|
| 22 |
+
else if prediction == 0 :
|
|
|
|
| 23 |
label = "π Negative"
|
| 24 |
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
return label
|
| 29 |
|
| 30 |
# Gradio Interface
|