Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Example Code #100

Open
nickjtay opened this issue Jul 27, 2024 · 3 comments
Open

Issue with Example Code #100

nickjtay opened this issue Jul 27, 2024 · 3 comments

Comments

@nickjtay
Copy link

The below code in the jupyter notebook produces a persistent timeout error.

from llmsherpa.readers import LayoutPDFReader

llmsherpa_api_url = "https://readers.llmsherpa.com/api/document/developer/parseDocument?renderFormat=all"
pdf_url = "https://arxiv.org/pdf/1910.13461.pdf" # also allowed is a file path e.g. /home/downloads/xyz.pdf
pdf_reader = LayoutPDFReader(llmsherpa_api_url)
doc = pdf_reader.read_pdf(pdf_url)
@ichbintonywu
Copy link

same problem happened for several days:(

@nickjtay
Copy link
Author

Is there any way to bring-your-own llm rather than use the api?

@rijulEDA
Copy link

rijulEDA commented Jul 30, 2024

It seems the "https://readers.llmsherpa.com/api/document/developer/parseDocument?renderFormat=all" API is down to use llmsherpa API one needs to host the API on their server and then use it. As mentioned (https://github.com/nlmatics/llmsherpa?tab=readme-ov-file#whats-new)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants