nlmatics / llmsherpa

Developer APIs to Accelerate LLM Projects
https://www.nlmatics.com
MIT License
1.17k stars 117 forks source link

Read pdf file contents #19

Closed moshewe closed 8 months ago

moshewe commented 8 months ago

as per issue #15 , with streamlit, the uploaded file can now be handled by the read_pdf function as such:

# getvalue() returns the bytes of the uploaded file
pdf_reader.read_pdf(st_uploaded_file.name, st_uploaded_file.getvalue())