richardorama commited on
Commit
594a95a
·
verified ·
1 Parent(s): dbdc1d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ 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"Text: {text}")
77
  st.write(f"Sentiment: {results[0]['label']}, Score: {results[0]['score']:.2f}\n")
78
 
79
  # Create a button and trigger the summarize function when clicked
 
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"Text: {txt_converted}")
77
  st.write(f"Sentiment: {results[0]['label']}, Score: {results[0]['score']:.2f}\n")
78
 
79
  # Create a button and trigger the summarize function when clicked