Spaces:
Running
Running
Update app.py
Browse files
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
|
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 |
|