Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,6 +163,9 @@ graph = builder.compile()
|
|
| 163 |
st.set_page_config(page_title="Math Chatbot",layout="centered")
|
| 164 |
st.title("Math Chatbot")
|
| 165 |
|
|
|
|
|
|
|
|
|
|
| 166 |
for msg in st.session_state.chat_history:
|
| 167 |
with st.chat_message(msg["role"]):
|
| 168 |
st.markdown(msg["content"])
|
|
|
|
| 163 |
st.set_page_config(page_title="Math Chatbot",layout="centered")
|
| 164 |
st.title("Math Chatbot")
|
| 165 |
|
| 166 |
+
if "chat_history" not in st.session_state:
|
| 167 |
+
st.session_state.chat_history = []
|
| 168 |
+
|
| 169 |
for msg in st.session_state.chat_history:
|
| 170 |
with st.chat_message(msg["role"]):
|
| 171 |
st.markdown(msg["content"])
|