sjalbright commited on
Commit
a48ff33
Β·
verified Β·
1 Parent(s): 95f7c08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def main_func(Generation_Label, WellBeing, SupportiveGM, Engagement, Workload, W
77
  impact = round(shap_val * 10, 2)
78
  icon = "πŸ“ˆ" if shap_val > 0 else "πŸ“‰"
79
  effect = "raises turnover risk" if shap_val > 0 else "improves retention"
80
- risk_html += f"<p style='margin: 5px 0;'> {icon} <b>Each 0.1-point increase in {feature} {effect} by {abs(impact)}%.</b></p>"
81
 
82
  risk_html += "</div></div>"
83
 
 
77
  impact = round(shap_val * 10, 2)
78
  icon = "πŸ“ˆ" if shap_val > 0 else "πŸ“‰"
79
  effect = "raises turnover risk" if shap_val > 0 else "improves retention"
80
+ risk_html += f"<p style='margin: 5px 0;'> {icon} <b>Each 1-point increase in {feature} {effect} by {abs(impact)}%.</b></p>"
81
 
82
  risk_html += "</div></div>"
83