uploaded_file = st.file_uploader(“Choose a file”,accept_multiple_files=True, type=None)
if uploaded_file:
for uploaded_files in uploaded_file:
file_path = os.path.join(uploaded_files.name, uploaded_files.name)
loader = UnstructuredFileLoader(file_path)
data = loader.load()
in my above code showing following error for any file uploading other than current working directory:
FileNotFoundError: [WinError 3] The system cannot find the path specified: ‘file.pdf\file.pdf’
Please help me out.Thank You.