Skip to content

Commit

Permalink
mindeeapi.py aktualisieren
Browse files Browse the repository at this point in the history
Switched to asynchronous api
  • Loading branch information
DrRSatzteil authored Jan 6, 2024
1 parent d6382af commit df6732f
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 @@ -19,5 +19,5 @@ def ocr_custom(pdf_bytes, document_name, account_name, endpoint_name):
endpoint_name=endpoint_name,
)
doc = client.source_from_bytes(pdf_bytes, document_name)
parsed_doc = client.parse(product.CustomV1, input_source=doc, endpoint=custom_endpoint)
parsed_doc = client.enqueue_and_parse(product.CustomV1, input_source=doc, include_words=True, endpoint=custom_endpoint)
return parsed_doc

0 comments on commit df6732f

Please sign in to comment.