navjotk commited on
Commit
7ef76fe
Β·
verified Β·
1 Parent(s): 7cbca92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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 with Transformers")
9
-
10
- text = st.text_area('Enter some text:')
11
 
12
  if text:
13
  with st.spinner("Analyzing..."):
14
- out = pipe(text)
15
- st.subheader("πŸ” Result:")
16
- st.json(out)
 
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)