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