Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
@@ -121,7 +121,7 @@ with st.sidebar:
|
|
121 |
if not ALL_PATIENTS:
|
122 |
st.error("无法加载病人数据。请检查JSON文件是否已上传且格式正确。")
|
123 |
else:
|
124 |
-
patient_options = {p["id"]: f"{p['portrait']['gender']},{p['portrait']['age']}岁 - {p['portrait']['
|
125 |
selected_id = st.selectbox(
|
126 |
"选择一位病人进行对话",
|
127 |
options=list(patient_options.keys()),
|
|
|
121 |
if not ALL_PATIENTS:
|
122 |
st.error("无法加载病人数据。请检查JSON文件是否已上传且格式正确。")
|
123 |
else:
|
124 |
+
patient_options = {p["id"]: f"{p['portrait']['gender']},{p['portrait']['age']}岁 - {p['portrait']['symptoms']}" for p in ALL_PATIENTS}
|
125 |
selected_id = st.selectbox(
|
126 |
"选择一位病人进行对话",
|
127 |
options=list(patient_options.keys()),
|