Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ if uploaded_file is not None:
|
|
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[
|
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 |
|
172 |
st.write("## Output:")
|
|
|
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 |
|
172 |
st.write("## Output:")
|