Update app.py
Browse files
app.py
CHANGED
@@ -104,24 +104,26 @@ def main():
|
|
104 |
|
105 |
# Display characteristic-based recommendations
|
106 |
st.subheader("Suggestions for retaining the employee:")
|
107 |
-
if
|
108 |
-
st.write("Enhance job satisfaction through
|
109 |
if years_since_last_promotion > 5:
|
110 |
-
st.write("Implement a transparent promotion policy and provide opportunities for career advancement
|
111 |
-
if
|
112 |
st.write("Offer opportunities for a change in reporting structure to prevent stagnation and promote growth.")
|
113 |
-
if
|
114 |
-
st.write("
|
115 |
-
if
|
116 |
-
st.write("
|
117 |
-
if
|
118 |
-
st.write("
|
119 |
-
if
|
120 |
-
st.write("
|
121 |
-
if
|
122 |
-
st.write("
|
123 |
-
if
|
124 |
-
st.write("
|
|
|
|
|
125 |
|
126 |
# General recommendation for all negative predictions
|
127 |
st.write("Conduct exit interviews to gather feedback and identify areas for improvement in retention strategies.")
|
|
|
104 |
|
105 |
# Display characteristic-based recommendations
|
106 |
st.subheader("Suggestions for retaining the employee:")
|
107 |
+
if job_satisfaction == 1 or environment_satisfaction == 1:
|
108 |
+
st.write("Enhance job and environment satisfaction through initiatives such as recognition programs and improving workplace conditions.")
|
109 |
if years_since_last_promotion > 5:
|
110 |
+
st.write("Implement a transparent promotion policy and provide opportunities for career advancement.")
|
111 |
+
if years_with_curr_manager > 5:
|
112 |
st.write("Offer opportunities for a change in reporting structure to prevent stagnation and promote growth.")
|
113 |
+
if percent_salary_hike < 5:
|
114 |
+
st.write("Consider adjusting salary and benefits packages to remain competitive and reward employee loyalty.")
|
115 |
+
if training_times_last_year < 2:
|
116 |
+
st.write("Invest in employee development through training programs and continuous learning opportunities.")
|
117 |
+
if over_time:
|
118 |
+
st.write("Evaluate workload distribution and consider implementing measures to prevent overwork, such as workload balancing and flexible scheduling.")
|
119 |
+
if relationship_satisfaction == 1:
|
120 |
+
st.write("Foster positive relationships and a supportive work environment through team-building activities and open communication channels.")
|
121 |
+
if monthly_income < 5000:
|
122 |
+
st.write("Review compensation structures and adjust salaries to align with industry standards and employee expectations.")
|
123 |
+
if num_companies_worked > 5:
|
124 |
+
st.write("Identify reasons for high turnover and address issues related to job stability, career progression, and organizational culture.")
|
125 |
+
if work_life_balance == 1:
|
126 |
+
st.write("Promote work-life balance initiatives, such as flexible work arrangements and wellness programs, to support employee well-being.")
|
127 |
|
128 |
# General recommendation for all negative predictions
|
129 |
st.write("Conduct exit interviews to gather feedback and identify areas for improvement in retention strategies.")
|