richardorama commited on
Commit
e91d315
·
verified ·
1 Parent(s): a4dab2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -73,7 +73,8 @@ def summarize(txt):
73
  st.write(f"Text: {text}")
74
  st.write(f"Sentiment: {results[i]['label']}, Score: {results[i]['score']:.2f}\n")
75
  else:
76
- st.write(f"Sentiment: {results['label']}, Score: {results['score']:.2f}\n")
 
77
 
78
  # Create a button and trigger the summarize function when clicked
79
  if st.sidebar.button('Summarize Sentiment'):
 
73
  st.write(f"Text: {text}")
74
  st.write(f"Sentiment: {results[i]['label']}, Score: {results[i]['score']:.2f}\n")
75
  else:
76
+ #st.write(f"Sentiment: {results['label']}, Score: {results['score']:.2f}\n")
77
+ st.write(results)
78
 
79
  # Create a button and trigger the summarize function when clicked
80
  if st.sidebar.button('Summarize Sentiment'):