Skip to content

Commit

Permalink
Updated client constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
wiazur authored Jan 7, 2020
1 parent 5cbabd2 commit deb4483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/search/entity_search_samples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from azure.cognitiveservices.search.entitysearch import EntitySearchClient
from azure.cognitiveservices.search.entitysearch import EntitySearchAPI
from azure.cognitiveservices.search.entitysearch.models import Place, ErrorResponseException
from msrest.authentication import CognitiveServicesCredentials

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

0 comments on commit deb4483

Please sign in to comment.