Update app.py
Browse files
app.py
CHANGED
@@ -249,7 +249,7 @@ def submit():
|
|
249 |
|
250 |
# **No `st.rerun()` here yet! Just update chat**
|
251 |
st.session_state.query_input = "" # Clear input after submission
|
252 |
-
st.
|
253 |
|
254 |
try:
|
255 |
# Process the query
|
@@ -272,7 +272,7 @@ def submit():
|
|
272 |
|
273 |
# Reset processing flag
|
274 |
st.session_state.processing_query = False
|
275 |
-
st.
|
276 |
|
277 |
def main():
|
278 |
# Page config
|
|
|
249 |
|
250 |
# **No `st.rerun()` here yet! Just update chat**
|
251 |
st.session_state.query_input = "" # Clear input after submission
|
252 |
+
st.rerun() # This will force a refresh once
|
253 |
|
254 |
try:
|
255 |
# Process the query
|
|
|
272 |
|
273 |
# Reset processing flag
|
274 |
st.session_state.processing_query = False
|
275 |
+
st.rerun() # Refresh UI once processing is done
|
276 |
|
277 |
def main():
|
278 |
# Page config
|