Skip to content

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

Open
@atangsyd

Description

@atangsyd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions