unstructured icon indicating copy to clipboard operation
unstructured copied to clipboard

bug/partition where unstructured-inference does not have keyword argument password in get_model()

Open atangsyd opened this issue 9 months ago • 0 comments

Describe the bug When using partition or partition_pdf on a filepath, it returns me an error due to issues with the unstructured-inference package not being up to date

To Reproduce file_path = "path_to_my_pdf.pdf" pdf_elements = partition(file_path , strategy='hi_res', hi_res_model_name='yolox', ocr_mode='none')

Expected behavior PDF elements returned where I can extract tables without doing an OCR on the whole document so it returns a result faster

Screenshots Image

Additional context I am using unstructured 0.17.2 but the dependency is it only lets met install unstructured-inference 0.7.26. There have been additions to both and they need to be synchronised.

atangsyd avatar Apr 17 '25 01:04 atangsyd