Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,10 +34,10 @@ if "chat_history" not in st.session_state:
|
|
| 34 |
for message in st.session_state.chat_history:
|
| 35 |
if isinstance(message, AIMessage):
|
| 36 |
with st.chat_message("AI"):
|
| 37 |
-
st.
|
| 38 |
elif isinstance(message, HumanMessage):
|
| 39 |
with st.chat_message("Human"):
|
| 40 |
-
st.
|
| 41 |
|
| 42 |
# User input
|
| 43 |
user_query = st.chat_input("Type your message here...")
|
|
|
|
| 34 |
for message in st.session_state.chat_history:
|
| 35 |
if isinstance(message, AIMessage):
|
| 36 |
with st.chat_message("AI"):
|
| 37 |
+
st.markdown(message.content)
|
| 38 |
elif isinstance(message, HumanMessage):
|
| 39 |
with st.chat_message("Human"):
|
| 40 |
+
st.markdown(message.content)
|
| 41 |
|
| 42 |
# User input
|
| 43 |
user_query = st.chat_input("Type your message here...")
|