mobarski / ask-my-pdf

Question answering system for PDF files
MIT License
583 stars 289 forks source link

Multiple files #52

Open darretking opened 1 year ago

darretking commented 1 year ago

Question: Is it possible to load multiple files at a time? This way I could ask a question and it could search all the resource documents to compile an answer.

waseahmed commented 1 year ago

I tried this by enabling accept_multiple_files=True, but it fails in b_save() and also i'm sure if this indexes multiple files

st.file_uploader('pdf file', type='pdf', key='pdf_file', disabled=disabled, on_change=index_pdf_file, label_visibility="collapsed",accept_multiple_files=True)