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

Is it possible to support PDF? #6

Open
C0ldSmi1e opened this issue Nov 14, 2024 · 2 comments
Open

Is it possible to support PDF? #6

C0ldSmi1e opened this issue Nov 14, 2024 · 2 comments

Comments

@C0ldSmi1e
Copy link

C0ldSmi1e commented Nov 14, 2024

Hi, thanks for your work! I actually created a similar tool with Gemini. Recently I have to deal with some receipts in PDF format, and here's my solution: converting the PDF to images page by page, and send them to Gemini. I'd love to try llama in ocr.

@tushar-prox
Copy link

tushar-prox commented Nov 14, 2024

Since the code uses base64 for JPEG, it is possible to convert a PDF into a base64 JPEG and achieve the same result using pdf2pic

Something like #8

I am unable to test it locally to it's in draft state.

@pyprakhar
Copy link

Hi, I have done similar work with Gemini and I had used a approach for, getiing pdf's work.

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