Update app.py
Browse files
app.py
CHANGED
|
@@ -86,11 +86,11 @@ if st.button("Submit"):
|
|
| 86 |
|
| 87 |
prediction = bank_model.predict([[credit_score, geography_value, gender_value, age, tenure, balance, e_salary, active_holder_value]])[0]
|
| 88 |
|
| 89 |
-
|
| 90 |
# Define messages and colors
|
| 91 |
review_status = {
|
| 92 |
-
|
| 93 |
-
|
| 94 |
}
|
| 95 |
|
| 96 |
# Get message and color based on prediction
|
|
|
|
| 86 |
|
| 87 |
prediction = bank_model.predict([[credit_score, geography_value, gender_value, age, tenure, balance, e_salary, active_holder_value]])[0]
|
| 88 |
|
| 89 |
+
|
| 90 |
# Define messages and colors
|
| 91 |
review_status = {
|
| 92 |
+
0: ("✅ The Customer is Interseted in our Bank", "#32CD32"), # Green
|
| 93 |
+
1: ("❌ The Customer is Not Interseted in our Bank", "#FF4500") # Red-Orange
|
| 94 |
}
|
| 95 |
|
| 96 |
# Get message and color based on prediction
|