Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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))
|