Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,9 @@ pipe = pipeline("sentiment-analysis", model="rickxzo/review-sentiment-analysis",
|
|
| 8 |
st.title("Sentiment Analysis with Transformer Model")
|
| 9 |
text = st.text_area("Enter some text:")
|
| 10 |
|
| 11 |
-
|
| 12 |
-
"LABEL_2":"Positive",
|
| 13 |
-
"LABEL_1":"Negative",
|
| 14 |
-
}
|
| 15 |
# Perform sentiment analysis when text is provided
|
| 16 |
if text:
|
| 17 |
out = pipe(text)
|
| 18 |
-
st.json(
|
|
|
|
|
|
| 8 |
st.title("Sentiment Analysis with Transformer Model")
|
| 9 |
text = st.text_area("Enter some text:")
|
| 10 |
|
| 11 |
+
|
|
|
|
|
|
|
|
|
|
| 12 |
# Perform sentiment analysis when text is provided
|
| 13 |
if text:
|
| 14 |
out = pipe(text)
|
| 15 |
+
st.json(out)
|
| 16 |
+
print("LABEL_2 : Positive\nLABEL_1 : Negative")
|