rasmodev commited on
Commit
6f97b0c
·
verified ·
1 Parent(s): a88018b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -16
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 job_role_satisfaction < 2:
108
- st.write("Enhance job satisfaction through job enrichment initiatives and regular assessments of job roles.")
109
  if years_since_last_promotion > 5:
110
- st.write("Implement a transparent promotion policy and provide opportunities for career advancement to employees who haven't been promoted recently.")
111
- if years_with_current_manager > 5:
112
  st.write("Offer opportunities for a change in reporting structure to prevent stagnation and promote growth.")
113
- if performance_rating < 3:
114
- st.write("Provide constructive feedback and support for employees with low performance ratings to improve their performance and morale.")
115
- if workload > 8:
116
- st.write("Implement workload balancing and stress management programs to support employee well-being and prevent burnout.")
117
- if career_development_opportunities == "Limited":
118
- st.write("Offer continuous learning and development opportunities to foster employee growth and engagement.")
119
- if feedback_mechanism == "Not Effective":
120
- st.write("Establish open channels for feedback and regular one-on-one meetings to address employee concerns and development needs.")
121
- if company_culture != "Aligned with Values":
122
- st.write("Foster a positive work environment aligned with organizational values to enhance employee retention.")
123
- if recognition_rewards == "Limited":
124
- st.write("Implement reward programs and appreciation initiatives to recognize and acknowledge employees' contributions.")
 
 
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.")