waghib commited on
Commit
6d7f5da
·
verified ·
1 Parent(s): 6c79b29

fixed experimental rerun error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -321,7 +321,7 @@ def main():
321
  st.markdown("""<br>""", unsafe_allow_html=True)
322
  if st.button("Get Started", key="get_started"):
323
  st.session_state.page = 'chat'
324
- st.experimental_rerun()
325
 
326
  with col2:
327
  # Animated medical icon
@@ -418,7 +418,7 @@ def main():
418
  st.session_state.chat_history.append((user_input, response))
419
 
420
  # Rerun to update UI
421
- st.experimental_rerun()
422
  except Exception as e:
423
  st.error(f"Error processing query: {str(e)}")
424
 
 
321
  st.markdown("""<br>""", unsafe_allow_html=True)
322
  if st.button("Get Started", key="get_started"):
323
  st.session_state.page = 'chat'
324
+ st.rerun()
325
 
326
  with col2:
327
  # Animated medical icon
 
418
  st.session_state.chat_history.append((user_input, response))
419
 
420
  # Rerun to update UI
421
+ st.rerun()
422
  except Exception as e:
423
  st.error(f"Error processing query: {str(e)}")
424