AlauStone commited on
Commit
7527c27
·
verified ·
1 Parent(s): 044bccb

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1364,10 +1364,8 @@ def _chat_fragment():
1364
  _top_k = st.session_state.get("sel_topk", 5)
1365
  _threshold = st.session_state.get("sel_threshold", 0.25)
1366
 
1367
- # 消息容器(可滚动) + 输入框固定在下方
1368
- # 有消息时使用固定高度实现滚动;无消息时不设高度避免空白
1369
- _has_msgs = bool(st.session_state.messages)
1370
- chat_box = st.container(height=520) if _has_msgs else st.container()
1371
  q = st.chat_input("输入问题...", key="chat_input_v3")
1372
 
1373
  with chat_box:
 
1364
  _top_k = st.session_state.get("sel_topk", 5)
1365
  _threshold = st.session_state.get("sel_threshold", 0.25)
1366
 
1367
+ # 消息容器 - 不设固定高度,由外层CSS控制滚动
1368
+ chat_box = st.container()
 
 
1369
  q = st.chat_input("输入问题...", key="chat_input_v3")
1370
 
1371
  with chat_box: