Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
|
|
|
|
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("""
|