James McCool commited on
Commit
5898d60
·
1 Parent(s): 1b92d06

Add initial rerun check in app.py to ensure session state is properly initialized, enhancing app stability and user experience.

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -482,3 +482,7 @@ with tab3:
482
  file_name='MLB_seed_frame_frequency.csv',
483
  mime='text/csv',
484
  )
 
 
 
 
 
482
  file_name='MLB_seed_frame_frequency.csv',
483
  mime='text/csv',
484
  )
485
+
486
+ if "initial_rerun_done" not in st.session_state:
487
+ st.session_state.initial_rerun_done = True
488
+ st.rerun()