Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 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")
|