Spaces:
Sleeping
Sleeping
Commit ·
e9b9144
1
Parent(s): 716eaf4
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ for message in st.session_state.messages:
|
|
| 138 |
st.markdown(message['content'])
|
| 139 |
|
| 140 |
if prompt := st.chat_input("Start talking with your student!"):
|
| 141 |
-
st.session_state.messages.append(
|
| 142 |
with st.chat_message(name_to_role('tutor')):
|
| 143 |
st.markdown(prompt)
|
| 144 |
|
|
|
|
| 138 |
st.markdown(message['content'])
|
| 139 |
|
| 140 |
if prompt := st.chat_input("Start talking with your student!"):
|
| 141 |
+
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 142 |
with st.chat_message(name_to_role('tutor')):
|
| 143 |
st.markdown(prompt)
|
| 144 |
|