I’d like to deploy a little streamlit app that loops over images I input and transforms them in a certain way. The amount of images Id like to loop over ranges from 10 to 10000 so I was wondering if there is a way to upload these in bulk or as zip folder so the script can unzip and process accordingly.
So far I have tried to use the file_uploader function even with multi file upload set to true, but the single select at a time is not a workable solution so far.
How about putting all the image filenames that you want to process, into a CSV file and then uploading that single CSV using the Streamlit file uploader?
Your loop in the app processing the images can then be used to also read the images from disk before processing.
You could repeat the above for multiple image file combinations in CSV files.
Thanks for your reply! I like the idea, but afraid I do not always know the filenames upfront. .From an enduser perspective the above approach would likely require images to be placed in a cloud bucket before running the script + create the CSV to then allow the file paths to be created and images being read. Was hoping there to be a more user-friendly way to do this
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.