JirasakJo commited on
Commit
bd8a027
·
verified ·
1 Parent(s): 572cdf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.experimental_rerun() # This will force a refresh once
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.experimental_rerun() # Refresh UI once processing is done
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