Streamlit has a function that allows convenient upload of multiple files.
files = st.file_uploader(\'File upload\', type=[\'txt\'],accept_multiple_files=True)