You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Instructions/Exercises/05-generate-images.md
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Now let's explore how you could build a custom app that uses Azure OpenAI servic
58
58
59
59
### Configure your application
60
60
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.
62
62
63
63
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.
64
64
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.
94
94
95
95
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:
96
96
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
+
```
99
107
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*.
101
109
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.
103
111
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.
Copy file name to clipboardExpand all lines: Instructions/Exercises/06-use-own-data.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,15 +80,15 @@ Bow you'll add some data for a fictional travel agent company named *Margie's Tr
80
80
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.
81
81
1. In Azure OpenAI Studio, in the **Chat** playground, in the **Assistant setup** section, select **Add your data**.
82
82
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.
84
84
85
85
- **Subscription**: *Your Azure subscription*
86
86
- **Resource group**: *Select the same resource group as your Azure OpenAI resource*
87
87
- **Storage account name**: *Enter a unique name*
88
88
- **Region**: *Select the same region as your Azure OpenAI resource*
89
89
- **Redundancy**: Locally-redundant storage (LRS)
90
90
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.
92
92
93
93
- **Subscription**: *Your Azure subscription*
94
94
- **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
103
103
- **Subscription**: Your Azure subscription
104
104
- **Select Azure Blob storage resource**: *Use the **Refresh** button to repopulate the list, and then choose the storage resource you created*
105
105
- 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*
107
107
- **Enter the index name**: `margiestravel`
108
108
- **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
110
110
111
111
1. On the **Upload files** page, upload the PDFs you downloaded, and then select **Next**.
112
112
1. On the **Data management** page select the **Keyword** search type from the drop-down, and then select **Next**.
0 commit comments