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