diff --git a/src/streamlit_uploads_library/gallery.py b/src/streamlit_uploads_library/gallery.py index 94639dc..dcdc77c 100644 --- a/src/streamlit_uploads_library/gallery.py +++ b/src/streamlit_uploads_library/gallery.py @@ -9,5 +9,6 @@ def __init__(self, directory, file_extensions=(".png", ".jpg", ".jpeg"), number_ def fetch_files(self): return super().fetch_files() + @st.cache_resource(experimental_allow_widgets=True, show_spinner="Refreshing gallery...") def create_gallery(_self): - return super().create_library() + return super().create_library(_self.number_of_columns, _self.show_details)