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

TypeError: get_model() got an unexpected keyword argument 'ocr_languages' #17

Open
linyaohui opened this issue Dec 26, 2023 · 0 comments

Comments

@linyaohui
Copy link

Traceback (most recent call last):
File "D:\python_project\ChatPDF-main\main.py", line 16, in
pages = loader.load_and_split()
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\langchain\document_loaders\base.py", line 36, in load_and_split
docs = self.load()
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\langchain\document_loaders\unstructured.py", line 61, in load
elements = self._get_elements()
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\langchain\document_loaders\pdf.py", line 29, in _get_elements
return partition_pdf(filename=self.file_path, **self.unstructured_kwargs)
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\unstructured\partition\pdf.py", line 68, in partition_pdf
return partition_pdf_or_image(
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\unstructured\partition\pdf.py", line 140, in partition_pdf_or_image
layout_elements = _partition_pdf_or_image_local(
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\unstructured\partition\pdf.py", line 227, in _partition_pdf_or_image_local
layout = process_file_with_model(
File "D:\anaconda\envs\ChatPDF-main2\lib\site-packages\unstructured_inference\inference\layout.py", line 377, in process_file_with_model
model = get_model(model_name, **kwargs)
TypeError: get_model() got an unexpected keyword argument 'ocr_languages'

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

1 participant