Skip to content

Commit 2adf9e7

Browse files
committed
Add intro sentence to third section
1 parent 62e9bfe commit 2adf9e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hub/apps/windows-dotnet-maui/dall-e-maui-windows.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ In this section, we'll install the SDK into the .NET MAUI project and initialize
7777

7878
## Modify your app's UI
7979

80-
In this section, we'll modify the user interface to include an `Image` control that displays a generated image below the recommendation text.
80+
Next, we'll modify the user interface to include an `Image` control that displays a generated image below the recommendation text.
8181

8282
1. If you are are starting with a new project, copy the XAML for `MainPage.xaml` from the [Create a recommendation app with .NET MAUI and ChatGPT](tutorial-maui-ai.md) tutorial.
8383

@@ -113,6 +113,8 @@ In this section, we'll modify the user interface to include an `Image` control t
113113

114114
## Implement DALL-E image generation
115115

116+
In this section, we'll add a method to handle image generation and call it from the existing `GetRecommendation` method to display the generated image.
117+
116118
1. If you are are starting with a new project, make sure your code in `MainPage.xaml.cs` matches the code from the [Create a recommendation app with .NET MAUI and ChatGPT](tutorial-maui-ai.md) tutorial.
117119

118120
1. Add a method named `GetImageAsync` to handle image generation. The new method will call the OpenAI API to generate an image based on the prompt we'll build in the next step. It returns an `ImageSource` object that is used to display the image in the UI:

0 commit comments

Comments
 (0)