Skip to content

Commit 92fe96d

Browse files
Merge pull request #249247 from PatrickFarley/gh-issues-address
[ai-svcs] Gh issues address
2 parents f065d89 + 6a449ad commit 92fe96d

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

articles/ai-services/computer-vision/includes/curl-quickstart.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ To create and run the sample, do the following steps:
4343
1. Replace the value of `<key>` with your key.
4444
1. Replace the first part of the request URL (`https://westcentralus.api.cognitive.microsoft.com/`) with the text in your own endpoint URL.
4545
[!INCLUDE [Custom subdomains notice](../../../../includes/cognitive-services-custom-subdomains-note.md)]
46-
1. Optionally, change the image URL in the request body (`https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png\`) to the URL of a different image to be analyzed.
46+
1. Optionally, change the image URL in the request body (`https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png`) to the URL of a different image to be analyzed.
47+
1. Open a command prompt window.
48+
1. Paste the command from the text editor into the command prompt window, and then run the command.
4749

48-
1. Open a console window.
49-
1. Paste the command from the text editor into the console window, and then run the command.
50-
51-
```bash
52-
curl -v -X POST "https://westcentralus.api.cognitive.microsoft.com/vision/v3.2/read/analyze" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <key>" --data-ascii "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png\"}"
53-
```
50+
```bash
51+
curl -v -X POST "https://westcentralus.api.cognitive.microsoft.com/vision/v3.2/read/analyze" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription key>" --data-ascii "{'url':'https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png'}"
52+
```
5453

5554
The response includes an `Operation-Location` header, whose value is a unique URL. You use this URL to query the results of the Read operation. The URL expires in 48 hours.
5655

@@ -59,7 +58,7 @@ The response includes an `Operation-Location` header, whose value is a unique UR
5958
As an optional step, see [Determine how to process the data](../how-to/call-read-api.md#determine-how-to-process-the-data-optional). For example, to explicitly specify the latest GA model, use `model-version=2022-04-30` as the parameter. Skipping the parameter or using `model-version=latest` automatically uses the most recent GA model.
6059

6160
```bash
62-
curl -v -X POST "https://westcentralus.api.cognitive.microsoft.com/vision/v3.2/read/analyze?model-version=2022-04-30" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription key>" --data-ascii "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Atomist_quote_from_Democritus.png/338px-Atomist_quote_from_Democritus.png\"}"
61+
curl -v -X POST "https://westcentralus.api.cognitive.microsoft.com/vision/v3.2/read/analyze?model-version=2022-04-30" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription key>" --data-ascii "{'url':'https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png'}"
6362
```
6463

6564
### Get Read results

articles/ai-services/openai/includes/dall-e-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
9999

100100
# Display the image in the default image viewer
101101
image = Image.open(image_path)
102-
image.show()
102+
image.show()
103103
```
104104

105105
> [!IMPORTANT]

articles/ai-services/openai/includes/dall-e-rest.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
7676
status = response.json()['status']
7777
image_url = response.json()['result']['data'][0]['url']
7878

79-
# Display the image in the default image viewer
80-
print(response.json())
79+
print(image_url)
8180
```
8281

8382
> [!IMPORTANT]

0 commit comments

Comments
 (0)