Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -131,10 +131,10 @@ if st.button("Send"):
|
|
131 |
|
132 |
st.success("✅ Response generated!")
|
133 |
# Add generated response to session state
|
134 |
-
st.
|
135 |
|
136 |
if st.button("🧹 Clear Chat"):
|
137 |
with st.spinner("Clearing chat history..."):
|
138 |
st.session_state.chat_history = []
|
139 |
st.success("✅ Chat history cleared!")
|
140 |
-
st.
|
|
|
131 |
|
132 |
st.success("✅ Response generated!")
|
133 |
# Add generated response to session state
|
134 |
+
st.rerun()
|
135 |
|
136 |
if st.button("🧹 Clear Chat"):
|
137 |
with st.spinner("Clearing chat history..."):
|
138 |
st.session_state.chat_history = []
|
139 |
st.success("✅ Chat history cleared!")
|
140 |
+
st.rerun()
|