Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ if st.button('Submit'):
|
|
81 |
ax.set_ylabel("Predicted category")
|
82 |
st.pyplot(fig)
|
83 |
|
84 |
-
st.write('
|
85 |
# output = genQuestion(option, input)
|
86 |
# print(output)
|
87 |
# st.write(output)
|
|
|
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))
|
85 |
# output = genQuestion(option, input)
|
86 |
# print(output)
|
87 |
# st.write(output)
|