Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def main():
|
|
124 |
selected_row = st.selectbox(
|
125 |
"Select a row (based on index) to analyze:",
|
126 |
options=df.index,
|
127 |
-
format_func=lambda x: f"Row {x} - Stress Level: {stress_level_to_string(df.loc[x, 'stress_level'])}, Anxiety: {df.loc[x, 'anxiety_level']}
|
128 |
)
|
129 |
row_data = df.loc[selected_row].to_dict()
|
130 |
st.write("### Selected User Details:")
|
|
|
124 |
selected_row = st.selectbox(
|
125 |
"Select a row (based on index) to analyze:",
|
126 |
options=df.index,
|
127 |
+
format_func=lambda x: f"Row {x} - Stress Level: {stress_level_to_string(df.loc[x, 'stress_level'])}, Anxiety: {df.loc[x, 'anxiety_level']}, Depression: {df.loc[x, 'depression']}",
|
128 |
)
|
129 |
row_data = df.loc[selected_row].to_dict()
|
130 |
st.write("### Selected User Details:")
|