How to use for Disconnected containers

Oleg Ponomarev 0 Reputation points

I am running the Azure Document Intelligence (ADI) on my private cloud instance in a container mode.

I know how to use public ADI to parse my PDF-file.

I just need to use this code:

from import DocumentAnalysisClient
from azure.core.credentials import AzureKeyCredential

endpoint = ""
key = ""
document_analysis_client = DocumentAnalysisClient(endpoint=endpoint, credential=AzureKeyCredential(key))
with open("MyPDF.pdf", "rb") as f:
    poller = document_analysis_client.begin_analyze_document(
        "prebuilt-document", document=f, locale="en-US"
result = poller.result()

The question is - how to call in the same way my ADI instance?

Azure Document Intelligence
{count} votes