Spaces:
Sleeping
Sleeping
Preetham04
commited on
Commit
•
60fe13c
1
Parent(s):
d263e6c
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ pipeline = pipeline(task="text-classification", model="Preetham04/sentiment-anal
|
|
5 |
|
6 |
def predict(input_text):
|
7 |
predictions = pipeline(input_text)
|
|
|
8 |
result = []
|
9 |
for p in predictions:
|
10 |
review = "POSITIVE" if p["label"] == "LABEL_1" else "NEGATIVE"
|
|
|
5 |
|
6 |
def predict(input_text):
|
7 |
predictions = pipeline(input_text)
|
8 |
+
print(predictions)
|
9 |
result = []
|
10 |
for p in predictions:
|
11 |
review = "POSITIVE" if p["label"] == "LABEL_1" else "NEGATIVE"
|