kmanoj commited on
Commit
61fa3f7
1 Parent(s): 33b659a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ text = st.text_area("Enter text for sentiment analysis:")
10
  if text:
11
  if st.button("Analyze Sentiment"):
12
  out=pipe(text)
13
- result=st.json(out)
14
  sentiment = result["label"]
15
  score = result["score"]
16
  st.write(f"Sentiment: {sentiment}")
 
10
  if text:
11
  if st.button("Analyze Sentiment"):
12
  out=pipe(text)
13
+ result=out[0]
14
  sentiment = result["label"]
15
  score = result["score"]
16
  st.write(f"Sentiment: {sentiment}")