Anil-matcha/ChatPDF

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

linyaohui opened this issue · 0 comments

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'