RuudVelo commited on
Commit
5772d0d
1 Parent(s): 0e4d9b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,8 +77,8 @@ if st.button('Submit'):
77
 
78
  ax.barh(labels_plot,probs_plot)
79
  ax.set_title("Predicted article category probability", fontsize=20)
80
- ax.set_xlabel("Probability")
81
- ax.set_ylabel("Predicted category")
82
  st.pyplot(fig)
83
 
84
  st.write('The predicted category is: **{}** with a probability of: **{:.1f}%**'.format(labels_plot[number],(probs_plot[predictions])*1))
 
77
 
78
  ax.barh(labels_plot,probs_plot)
79
  ax.set_title("Predicted article category probability", fontsize=20)
80
+ ax.set_xlabel("Probability (%)", fontsize=16)
81
+ ax.set_ylabel("Predicted category", fontsize=16)
82
  st.pyplot(fig)
83
 
84
  st.write('The predicted category is: **{}** with a probability of: **{:.1f}%**'.format(labels_plot[number],(probs_plot[predictions])*1))