rdune71 commited on
Commit
4a07d43
·
1 Parent(s): 6419a6b

Fix Streamlit compatibility issue with container border parameter

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -164,10 +164,12 @@ if st.session_state.messages and len(st.session_state.messages) > 0:
164
 
165
  # Show conversation preview
166
  st.markdown("**Conversation Preview for HF Expert:**")
167
- with st.container(border=True):
168
- for i, msg in enumerate(st.session_state.messages[-5:]): # Last 5 messages
169
- role = "👤 You" if msg["role"] == "user" else "🤖 Assistant"
170
- st.markdown(f"**{role}:** {msg['content'][:100]}{'...' if len(msg['content']) > 100 else ''}")
 
 
171
 
172
  with col2:
173
  if st.button("🧠 Activate HF Expert",
 
164
 
165
  # Show conversation preview
166
  st.markdown("**Conversation Preview for HF Expert:**")
167
+ # Create a container-like appearance without using the border parameter
168
+ st.markdown("---")
169
+ for i, msg in enumerate(st.session_state.messages[-5:]): # Last 5 messages
170
+ role = "👤 You" if msg["role"] == "user" else "🤖 Assistant"
171
+ st.markdown(f"**{role}:** {msg['content'][:100]}{'...' if len(msg['content']) > 100 else ''}")
172
+ st.markdown("---")
173
 
174
  with col2:
175
  if st.button("🧠 Activate HF Expert",