Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,8 @@ def main():
|
|
147 |
# Display prediction probability
|
148 |
if prediction[0] == 1:
|
149 |
st.subheader("Prediction Probability π")
|
150 |
-
st.write(f"The probability of the employee leaving
|
|
|
151 |
|
152 |
# Display characteristic-based recommendations
|
153 |
st.subheader("Recommendations for Retaining The Employee π‘:")
|
|
|
147 |
# Display prediction probability
|
148 |
if prediction[0] == 1:
|
149 |
st.subheader("Prediction Probability π")
|
150 |
+
st.write(f"The probability of the employee leaving is: <span style='color:red; font-weight:bold;'>{probability[0]*100:.2f}%</span>", unsafe_allow_html=True)
|
151 |
+
|
152 |
|
153 |
# Display characteristic-based recommendations
|
154 |
st.subheader("Recommendations for Retaining The Employee π‘:")
|