Skip to content

Commit

Permalink
Update mindeeapi.py
Browse files Browse the repository at this point in the history
Include ocr on sync calls
  • Loading branch information
DrRSatzteil authored Jan 6, 2024
1 parent 945cb2e commit 3b8fb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mayanmindee/mindeeapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def ocr_custom(pdf_bytes, document_name, account_name, endpoint_name, model_vers
)
doc = client.source_from_bytes(pdf_bytes, document_name)
if synchronous:
parsed_doc = client.parse(product.CustomV1, input_source=doc, endpoint=custom_endpoint)
parsed_doc = client.parse(product.CustomV1, input_source=doc, include_words=True, endpoint=custom_endpoint)
else:
parsed_doc = client.enqueue_and_parse(product.CustomV1, input_source=doc, include_words=True, endpoint=custom_endpoint)
return parsed_doc

0 comments on commit 3b8fb81

Please sign in to comment.