Mpavan45 commited on
Commit
92a4433
·
verified ·
1 Parent(s): bfc799d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -108,13 +108,12 @@ chat = RunnableWithMessageHistory(
108
  if "messages" not in st.session_state:
109
  st.session_state.messages = load_chat_history(session_id)
110
 
111
- chat_container = st.container()
112
 
113
  # Display chat history
114
- with chat_container:
115
- for role, content in st.session_state.messages:
116
- with st.chat_message(role):
117
- st.markdown(content)
118
 
119
  # User input at the bottom
120
  user_input = st.text_input("Type your message here:", key="user_message")
 
108
  if "messages" not in st.session_state:
109
  st.session_state.messages = load_chat_history(session_id)
110
 
 
111
 
112
  # Display chat history
113
+
114
+ for role, content in st.session_state.messages:
115
+ with st.chat_message(role):
116
+ st.markdown(content)
117
 
118
  # User input at the bottom
119
  user_input = st.text_input("Type your message here:", key="user_message")