Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -214,10 +214,14 @@ if submitted:
|
|
| 214 |
st.markdown('''---''')
|
| 215 |
st.markdown("<h4 style='text-align: center;'> Prediction Results </h4> ", unsafe_allow_html=True)
|
| 216 |
st.success(f"Prediction: {output}")
|
| 217 |
-
st.success(
|
| 218 |
-
st.success(f"Confidence Probability: {prob_output}")
|
| 219 |
st.markdown('''---''')
|
| 220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
# Making expander to view all records
|
| 222 |
expander = st.expander("See all records")
|
| 223 |
with expander:
|
|
|
|
| 214 |
st.markdown('''---''')
|
| 215 |
st.markdown("<h4 style='text-align: center;'> Prediction Results </h4> ", unsafe_allow_html=True)
|
| 216 |
st.success(f"Prediction: {output}")
|
| 217 |
+
#st.success(f"Confidence Probability: {prob_output}")
|
|
|
|
| 218 |
st.markdown('''---''')
|
| 219 |
|
| 220 |
+
st.subheader('Prediction Percentages:')
|
| 221 |
+
st.write('**Probablity of Person not churning is ( in % )**:',proba_output)[0][0]*100)
|
| 222 |
+
st.write('**Probablity of Person not churning is ( in % )**:',proba_output[0][1]*100)
|
| 223 |
+
|
| 224 |
+
|
| 225 |
# Making expander to view all records
|
| 226 |
expander = st.expander("See all records")
|
| 227 |
with expander:
|