Skip to content

Commit deb4483

Browse files
authored
Updated client constructor
1 parent 5cbabd2 commit deb4483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/search/entity_search_samples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from azure.cognitiveservices.search.entitysearch import EntitySearchClient
1+
from azure.cognitiveservices.search.entitysearch import EntitySearchAPI
22
from azure.cognitiveservices.search.entitysearch.models import Place, ErrorResponseException
33
from msrest.authentication import CognitiveServicesCredentials
44

@@ -11,7 +11,7 @@ def dominant_entity_lookup(subscription_key):
1111
1212
This will look up a single entity (Satya Nadella) and print out a short description about them.
1313
"""
14-
client = EntitySearchClient(
14+
client = EntitySearchAPI(
1515
endpoint="https://api.cognitive.microsoft.com",
1616
credentials=CognitiveServicesCredentials(subscription_key)
1717
)

0 commit comments

Comments
 (0)