Skip to content

Commit 18e720b

Browse files
committed
2 parents 356f357 + 7059ff9 commit 18e720b

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

Instructions/Exercises/05-generate-images.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Now let's explore how you could build a custom app that uses Azure OpenAI servic
5858
5959
### Configure your application
6060

61-
Applications for both C# and Python have been provided, as well as a sample text file you'll use to test the summarization. Both apps feature the same functionality. First, you'll complete some key parts of the application to enable using your Azure OpenAI resource.
61+
Applications for both C# and Python have been provided. Both apps feature the same functionality. First, you'll complete some key parts of the application to enable using your Azure OpenAI resource.
6262

6363
1. In Visual Studio Code, in the **Explorer** pane, browse to the **Labfiles/05-image-generation** folder and expand the **CSharp** or **Python** folder depending on your language preference. Each folder contains the language-specific files for an app into which you're you're going to integrate Azure OpenAI functionality.
6464
2. In the **Explorer** pane, in the **CSharp** or **Python** folder, open the configuration file for your preferred language
@@ -94,14 +94,22 @@ Now that you've reviewed the code, it's time to run it and generate some images.
9494

9595
1. Right-click the **CSharp** or **Python** folder containing your code files and open an integrated terminal. Then enter the appropriate command to run your application:
9696

97-
- **C#**: `dotnet run`
98-
- **Python**: `python generate-image.py`
97+
**C#**
98+
```
99+
dotnet run
100+
```
101+
102+
**Python**
103+
```
104+
pip install requests
105+
python generate-image.py
106+
```
99107

100-
2. When prompted, enter a description for an image. For example, *A giraffe flying a kite*.
108+
3. When prompted, enter a description for an image. For example, *A giraffe flying a kite*.
101109

102-
3. Wait for the image to be generated - a hyperlink will be displayed in the terminal pane. Then select the hyperlink to open a new browser tab and review the image that was generated.
110+
4. Wait for the image to be generated - a hyperlink will be displayed in the terminal pane. Then select the hyperlink to open a new browser tab and review the image that was generated.
103111

104-
4. Close the browser tab containing the generated image and re-run the app to generate a new image with a different prompt.
112+
5. Close the browser tab containing the generated image and re-run the app to generate a new image with a different prompt.
105113

106114
## Clean up
107115

Instructions/Exercises/06-use-own-data.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ Bow you'll add some data for a fictional travel agent company named *Margie's Tr
8080
1. In a new browser tab, download an archive of brochure data from `https://aka.ms/own-data-brochures`. Extract the brochures to a folder on your PC.
8181
1. In Azure OpenAI Studio, in the **Chat** playground, in the **Assistant setup** section, select **Add your data**.
8282
1. Select **Add a data source** and choose **Upload files**.
83-
1. You'll need to create a storage account and Azure Cognitive Search resource. Under the dropdown for the storage resource, select **Create a new Azure Blob storage resource**, and create a storage account with the following settings. Anything not specified leave as the default.
83+
1. You'll need to create a storage account and Azure AI Search resource. Under the dropdown for the storage resource, select **Create a new Azure Blob storage resource**, and create a storage account with the following settings. Anything not specified leave as the default.
8484
8585
- **Subscription**: *Your Azure subscription*
8686
- **Resource group**: *Select the same resource group as your Azure OpenAI resource*
8787
- **Storage account name**: *Enter a unique name*
8888
- **Region**: *Select the same region as your Azure OpenAI resource*
8989
- **Redundancy**: Locally-redundant storage (LRS)
9090
91-
1. While the storage account resource is being created, return to Azure OpenAI Studio and select **Create a new Azure Cognitive Search resource** with the following settings. Anything not specified leave as the default.
91+
1. While the storage account resource is being created, return to Azure OpenAI Studio and select **Create a new Azure AI Search resource** with the following settings. Anything not specified leave as the default.
9292
9393
- **Subscription**: *Your Azure subscription*
9494
- **Resource group**: *Select the same resource group as your Azure OpenAI resource*
@@ -103,10 +103,10 @@ Bow you'll add some data for a fictional travel agent company named *Margie's Tr
103103
- **Subscription**: Your Azure subscription
104104
- **Select Azure Blob storage resource**: *Use the **Refresh** button to repopulate the list, and then choose the storage resource you created*
105105
- Turn on CORS when prompted
106-
- **Select Azure Cognitive Search resource**: *Use the **Refresh** button to repopulate the list, and then choose the search resource you created*
106+
- **Select Azure AI Search resource**: *Use the **Refresh** button to repopulate the list, and then choose the search resource you created*
107107
- **Enter the index name**: `margiestravel`
108108
- **Add vector search to this search resource**: unchecked
109-
- **I acknowledge that connecting to an Azure Cognitive Search account will incur usage to my account** : checked
109+
- **I acknowledge that connecting to an Azure AI Search account will incur usage to my account** : checked
110110
111111
1. On the **Upload files** page, upload the PDFs you downloaded, and then select **Next**.
112112
1. On the **Data management** page select the **Keyword** search type from the drop-down, and then select **Next**.

0 commit comments

Comments
 (0)