ak0601 commited on
Commit
7243569
·
verified ·
1 Parent(s): 632eedb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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"])