Skip to content

Commit

Permalink
feat: add reload button
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Jul 6, 2024
1 parent cf27511 commit e6a0fd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/pages/2_HMM-GLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def open_image_from_s3(file_key, crop=None, **kwargs):
widget_n_states = st.container()
widget_model_comparison = st.container()

if st.button('Reload data from S3'):
st.cache_data.clear()
st.rerun()

data_folder_selected = widget_data_folder.selectbox('Select Data Folder', data_folders)

if data_folder_selected:
Expand Down

0 comments on commit e6a0fd5

Please sign in to comment.