We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PIL.UnidentifiedImageError: cannot identify image file UploadedFile(file_id='d6c294fe-9942-451e-b371-f08af26327b9', name='IMG_677922CC6FA1-1.pdf', type='application/pdf', size=703795, _file_urls=file_id: "d6c294fe-9942-451e-b371-f08af26327b9" upload_url: "/_stcore/upload_file/b05cd0b0-4e16-4fd6-9c1d-2e5d963d47b7/d6c294fe-9942-451e-b371-f08af26327b9" delete_url: "/_stcore/upload_file/b05cd0b0-4e16-4fd6-9c1d-2e5d963d47b7/d6c294fe-9942-451e-b371-f08af26327b9" ) Traceback: File "/Users/christian/git/Ollama-OCR/src/ollama_ocr/app.py", line 247, in <module> main() File "/Users/christian/git/Ollama-OCR/src/ollama_ocr/app.py", line 163, in main image = Image.open(uploaded_file) File "/Users/christian/Library/Python/3.9/lib/python/site-packages/PIL/Image.py", line 3536, in open raise UnidentifiedImageError(msg)
The text was updated successfully, but these errors were encountered:
I have tested it with different PDF, it is working. try with any other PDF file, if issue persist- comment
Sorry, something went wrong.
No matter which PDF I upload, I always get this error
will check on this
Same
Same plus 1
No branches or pull requests
PIL.UnidentifiedImageError: cannot identify image file UploadedFile(file_id='d6c294fe-9942-451e-b371-f08af26327b9', name='IMG_677922CC6FA1-1.pdf', type='application/pdf', size=703795, _file_urls=file_id: "d6c294fe-9942-451e-b371-f08af26327b9" upload_url: "/_stcore/upload_file/b05cd0b0-4e16-4fd6-9c1d-2e5d963d47b7/d6c294fe-9942-451e-b371-f08af26327b9" delete_url: "/_stcore/upload_file/b05cd0b0-4e16-4fd6-9c1d-2e5d963d47b7/d6c294fe-9942-451e-b371-f08af26327b9" ) Traceback: File "/Users/christian/git/Ollama-OCR/src/ollama_ocr/app.py", line 247, in <module> main() File "/Users/christian/git/Ollama-OCR/src/ollama_ocr/app.py", line 163, in main image = Image.open(uploaded_file) File "/Users/christian/Library/Python/3.9/lib/python/site-packages/PIL/Image.py", line 3536, in open raise UnidentifiedImageError(msg)
The text was updated successfully, but these errors were encountered: