Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,11 @@ from transformers import pipeline
|
|
5 |
pipe = pipeline('sentiment-analysis')
|
6 |
|
7 |
# Streamlit UI
|
8 |
-
st.title("π Sentiment Analysis
|
9 |
-
|
10 |
-
text = st.text_area('Enter some text:')
|
11 |
|
12 |
if text:
|
13 |
with st.spinner("Analyzing..."):
|
14 |
-
|
15 |
-
st.subheader("
|
16 |
-
st.json(
|
|
|
5 |
pipe = pipeline('sentiment-analysis')
|
6 |
|
7 |
# Streamlit UI
|
8 |
+
st.title("π Sentiment Analysis App")
|
9 |
+
text = st.text_area("Enter your text here:")
|
|
|
10 |
|
11 |
if text:
|
12 |
with st.spinner("Analyzing..."):
|
13 |
+
result = pipe(text)
|
14 |
+
st.subheader("π Result:")
|
15 |
+
st.json(result)
|