36
36
37
37
class AuthenticationSample (object ):
38
38
39
- url = "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png "
39
+ url = "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg "
40
40
41
41
def authentication_with_api_key_credential_form_recognizer_client (self ):
42
42
# [START create_fr_client_with_key]
@@ -47,8 +47,8 @@ def authentication_with_api_key_credential_form_recognizer_client(self):
47
47
48
48
form_recognizer_client = FormRecognizerClient (endpoint , AzureKeyCredential (key ))
49
49
# [END create_fr_client_with_key]
50
- poller = form_recognizer_client .begin_recognize_receipts_from_url (self .url )
51
- receipt = poller .result ()
50
+ poller = form_recognizer_client .begin_recognize_content_from_url (self .url )
51
+ result = poller .result ()
52
52
53
53
def authentication_with_azure_active_directory_form_recognizer_client (self ):
54
54
# [START create_fr_client_with_aad]
@@ -63,8 +63,8 @@ def authentication_with_azure_active_directory_form_recognizer_client(self):
63
63
64
64
form_recognizer_client = FormRecognizerClient (endpoint , credential )
65
65
# [END create_fr_client_with_aad]
66
- poller = form_recognizer_client .begin_recognize_receipts_from_url (self .url )
67
- receipt = poller .result ()
66
+ poller = form_recognizer_client .begin_recognize_content_from_url (self .url )
67
+ result = poller .result ()
68
68
69
69
def authentication_with_api_key_credential_form_training_client (self ):
70
70
# [START create_ft_client_with_key]
0 commit comments