Zekun Wu
commited on
Commit
•
93e0e7d
1
Parent(s):
81ba3a5
update
Browse files
app.py
CHANGED
@@ -208,13 +208,13 @@ def display_profile_info(profile):
|
|
208 |
st.markdown("### Profile Information:")
|
209 |
team_members = profile["Team"]
|
210 |
for member in team_members:
|
211 |
-
st.markdown(f"#### {member['name']}")
|
212 |
main_profile = member["main_profile"]
|
213 |
red_flag = member["red_flag"]
|
214 |
-
st.markdown("### Main Profile:")
|
215 |
-
st.markdown("\n".join([f"- **{attribute}**: {details['score']}" for attribute, details in main_profile.items()]))
|
216 |
-
st.markdown("### Red Flags:")
|
217 |
-
st.markdown("\n".join([f"- **{attribute}**: {details['score']}" for attribute, details in red_flag.items()]))
|
218 |
# main_profile = profile["main_profile"]
|
219 |
# red_flag = profile["red_flag"]
|
220 |
# bio_info = profile["bio_information"]
|
@@ -268,7 +268,7 @@ def main_app():
|
|
268 |
st.session_state['temperature'] = st.slider("",min_value=0.0, max_value=1.0, value=0.5, step=0.01)
|
269 |
|
270 |
# Allow user to choose from different versions of the prompt
|
271 |
-
st.session_state['version'] = st.selectbox("Select Prompt Version", ["
|
272 |
# Generate and display prompt
|
273 |
|
274 |
if st.button(f'Analyze Profile ({st.session_state["version"]})'):
|
|
|
208 |
st.markdown("### Profile Information:")
|
209 |
team_members = profile["Team"]
|
210 |
for member in team_members:
|
211 |
+
st.sidebar.markdown(f"#### {member['name']}")
|
212 |
main_profile = member["main_profile"]
|
213 |
red_flag = member["red_flag"]
|
214 |
+
st.sidebar.markdown("### Main Profile:")
|
215 |
+
st.sidebar.markdown("\n".join([f"- **{attribute}**: {details['score']}" for attribute, details in main_profile.items()]))
|
216 |
+
st.sidebar.markdown("### Red Flags:")
|
217 |
+
st.sidebar.markdown("\n".join([f"- **{attribute}**: {details['score']}" for attribute, details in red_flag.items()]))
|
218 |
# main_profile = profile["main_profile"]
|
219 |
# red_flag = profile["red_flag"]
|
220 |
# bio_info = profile["bio_information"]
|
|
|
268 |
st.session_state['temperature'] = st.slider("",min_value=0.0, max_value=1.0, value=0.5, step=0.01)
|
269 |
|
270 |
# Allow user to choose from different versions of the prompt
|
271 |
+
st.session_state['version'] = st.selectbox("Select Prompt Version", ["TeamSummary"])
|
272 |
# Generate and display prompt
|
273 |
|
274 |
if st.button(f'Analyze Profile ({st.session_state["version"]})'):
|