VaAishvarR commited on
Commit
3b82c0e
1 Parent(s): 7d57cde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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({'ValueDiversity':ValueDiversity,'AdequateResources':AdequateResources,
18
- 'Voice':Voice,'GrowthAdvancement':GrowthAdvancement,'Workload':Workload,
19
- 'WorkLifeBalance':WorkLifeBalance}, orient = 'index').transpose()
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