CCockrum commited on
Commit
4c9ca1d
·
verified ·
1 Parent(s): 1218ea2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -122,7 +122,9 @@ if st.sidebar.button("Reset Chat"):
122
  st.session_state.chat_history = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
123
  st.session_state.response_ready = False
124
  st.session_state.follow_up = ""
125
- st.experimental_rerun()
 
 
126
 
127
  # Custom Chat Styling
128
  st.markdown("""
 
122
  st.session_state.chat_history = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
123
  st.session_state.response_ready = False
124
  st.session_state.follow_up = ""
125
+ st.session_state.last_topic = ""
126
+ st.rerun() # ✅ Correct method to reset the app in newer Streamlit versions
127
+
128
 
129
  # Custom Chat Styling
130
  st.markdown("""