Skip to content

[BUG CLIENT]: Processing failed: Ocr.process() got an unexpected keyword argument 'bbox_annotation_format" #233

@Sudhansukisan1

Description

@Sudhansukisan1

Python -VV

mistralai==1.8.1
But here’s the catch:

✅ The 1.8.1 version is for the Mistral chat APIs,
❌ It does not (yet) include the bbox_annotation_format and document_annotation_format arguments in ocr.process().------------------- facing issue on local jupyter but the same code is working in colab.

Pip Freeze

https://colab.research.google.com/github/mistralai/cookbook/blob/main/mistral/ocr/data_extraction.ipynb#scrollTo=UtCyIWRuimm6

Reproduction Steps

  1. open the notebook, shared in the mistral documentation, cookbook, run the colab notebook
    2.https://colab.research.google.com/github/mistralai/cookbook/blob/main/mistral/ocr/data_extraction.ipynb#scrollTo=UtCyIWRuimm6
  2. post running the colab notebook, we are getting the as expected results .
  3. download the same notebook and when running the same notebook in jupyter, facing below error- Processing failed: Ocr.process() got an unexpected keyword argument 'bbox_annotation_format'

Expected Behavior

output should come like this :- Annotated OCR output saved to: 1131w-xQCuAjV8KEI (2) 1 (1)_annotated.md

Additional Context

No response

Suggested Solutions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions