Spaces:
Build error
Build error
VaAishvarR
commited on
Commit
•
3b82c0e
1
Parent(s):
7d57cde
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ explainer = shap.Explainer(loaded_model) # PLEASE DO NOT CHANGE THIS.
|
|
14 |
|
15 |
# Create the main function for server
|
16 |
def main_func(ValueDiversity,AdequateResources,Voice,GrowthAdvancement,Workload,WorkLifeBalance):
|
17 |
-
new_row = pd.DataFrame.from_dict({'
|
18 |
-
'
|
19 |
-
|
20 |
|
21 |
prob = loaded_model.predict_proba(new_row)
|
22 |
|
|
|
14 |
|
15 |
# Create the main function for server
|
16 |
def main_func(ValueDiversity,AdequateResources,Voice,GrowthAdvancement,Workload,WorkLifeBalance):
|
17 |
+
new_row = pd.DataFrame.from_dict({'Management':Management,'EmployeeWellBeing':EmployeeWellBeing,
|
18 |
+
'EngagedAtWork':EngagedAtWork,'WorkEnvironment':WorkEnvironment,'JobSatisfaction':JobSatisfaction,
|
19 |
+
}, orient = 'index').transpose()
|
20 |
|
21 |
prob = loaded_model.predict_proba(new_row)
|
22 |
|