ihsan66 commited on
Commit
6dabb3a
1 Parent(s): 2491b82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -55,4 +55,7 @@ if Run_Button and input_text:
55
  df = pd.DataFrame(output)
56
  st.dataframe(df)
57
 
58
- # Display th
 
 
 
 
55
  df = pd.DataFrame(output)
56
  st.dataframe(df)
57
 
58
+ # Display the sentiment in a more user-friendly format
59
+ sentiment = output[0]['label']
60
+ score = output[0]['score']
61
+ st.write(f"Sentiment: {sentiment} (Score: {score:.2f})"