Hey streamlit community. I am working on an app where I want users to provide the path using
st.text_input() and whatever they give here, my function will then read all the files with ‘.csv’ extensions. The problem I’m facing here is after I deployed an app on streamlit cloud workplace. It throws an error saying no such file or directory was found. It works perfect in localhost.
folderpath = st.text_input(‘Please enter path’)
filepaths = [f for f in listdir(folderpath) if f.endswith(‘.csv’)]
Let me know your thoughts on what should I do to get it to work for a deployed app.
Thanks in advance!