Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -166,12 +166,13 @@ 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[3
|
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("
|
173 |
-
st.write("
|
174 |
-
st.write("
|
175 |
-
st.write("
|
176 |
st.dataframe(df_combined)
|
|
|
177 |
st.write(boss_json)
|
|
|
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[:3,1:].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:")
|
173 |
+
st.write("### 1. Extracted data: Dimensions Assessment of the leader by: Boss, Colleagues, Colleagues (other b.), Direct reports, Customers and All Raters")
|
174 |
+
st.write("### 2. Derived data: Self score")
|
175 |
+
st.write("#### Dataset Table")
|
176 |
st.dataframe(df_combined)
|
177 |
+
st.write("### 3. Strengths rated by Boss")
|
178 |
st.write(boss_json)
|