Skip to content

Commit a912f23

Browse files
authored
Merge pull request #78676 from RohitMungi-MSFT/patch-9
(AzureCXP) fixes MicrosftDocs/azure-docs#32601
2 parents fb6c4e0 + 3b0fd74 commit a912f23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/cognitive-services/bing-visual-search/visual-search-sdk-python.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Use this quickstart to begin getting image insights from the Bing Visual Search
4646
Filters,
4747
KnowledgeRequest,
4848
)
49+
from msrest.authentication import CognitiveServicesCredentials
4950
```
5051
2. Create variables for your subscription key, Custom Configuration ID, and the image you want to upload.
5152

@@ -59,7 +60,7 @@ Use this quickstart to begin getting image insights from the Bing Visual Search
5960
3. Instantiate the client
6061

6162
```python
62-
var client = new VisualSearchClient(new ApiKeyServiceClientCredentials("YOUR-ACCESS-KEY"))
63+
client = VisualSearchClient(endpoint="https://api.cognitive.microsoft.com", credentials=CognitiveServicesCredentials(subscription_key))
6364
```
6465

6566
## Send the search request

0 commit comments

Comments
 (0)