Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,9 +154,9 @@ if st.session_state.start_chat:
|
|
| 154 |
if "messages" not in st.session_state:
|
| 155 |
st.session_state.messages = []
|
| 156 |
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
|
| 161 |
prompt = st.chat_input("Enter your message")
|
| 162 |
if prompt:
|
|
|
|
| 154 |
if "messages" not in st.session_state:
|
| 155 |
st.session_state.messages = []
|
| 156 |
|
| 157 |
+
for message in st.session_state.messages:
|
| 158 |
+
with st.chat_message(message["role"]):
|
| 159 |
+
st.markdown(message["content"])
|
| 160 |
|
| 161 |
prompt = st.chat_input("Enter your message")
|
| 162 |
if prompt:
|