Vineedhar commited on
Commit
b5cddd1
·
verified ·
1 Parent(s): 7fb0758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -165,7 +165,12 @@ if uploaded_file is not None:
165
  colleague['Colleague_score'] = colleague['Dimensions'].map(mappings['Colleague_score'])
166
  other_colleague['Other_colleague_score'] = other_colleague['Dimensions'].map(mappings['Other_colleague_score'])
167
 
168
- boss.sort_values(by = 'Boss_score', ascending = False)
 
 
 
 
 
169
  boss_json = boss.iloc[:,1:].head(3).to_dict(orient='records')
170
  prompt = f"You are a corporate trainer who guides me how to behave in corporate settings. You will analyze the top 3 strengths and scores{boss_json} rated by my boss out of 6. You will generate a nudge for each dimension to improveupon these strengths."
171
 
 
165
  colleague['Colleague_score'] = colleague['Dimensions'].map(mappings['Colleague_score'])
166
  other_colleague['Other_colleague_score'] = other_colleague['Dimensions'].map(mappings['Other_colleague_score'])
167
 
168
+ boss = boss.sort_values(by = 'Boss_score', ascending = False).reset_index()
169
+ direct = direct.sort_values(by = 'Report_score', ascending = False).reset_index()
170
+ colleague = colleague.sort_values(by = 'Colleague_score', ascending = False).reset_index()
171
+ other_colleague = other_colleague.sort_values(by = 'Other_colleague_score', ascending = False).reset_index()
172
+
173
+
174
  boss_json = boss.iloc[:,1:].head(3).to_dict(orient='records')
175
  prompt = f"You are a corporate trainer who guides me how to behave in corporate settings. You will analyze the top 3 strengths and scores{boss_json} rated by my boss out of 6. You will generate a nudge for each dimension to improveupon these strengths."
176