generative-ai-for-beginners icon indicating copy to clipboard operation
generative-ai-for-beginners copied to clipboard

feat: Lesson 9 - Building Image Generation Applications - TypeScript sample

Open glaucia86 opened this issue 1 year ago • 1 comments

This PR is a TypeScript version of Lesson 09: Building Image Generation Applications

How to run the example?

  1. Create a .env file at the root of the application and include the information for AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. There is a file named .env-sample explaining how to create the .env file.

for this sample is necessary to create a deployment model for Dall-E

  1. To install dependencies, navigate to (under the lesson 09):

cd: typescript/image-generation-app

Then execute the command:

npm install

  1. After the necessary dependencies are installed in the application, open the terminal and run the command:

npm run build

  1. Finally, execute the command:

npm run start

  1. You will have the application running perfectly.

You can see in action in this gif below:

image-app-lesson-09-dotnet

  • Final result in TypeScript sample:

image-app-lesson-09-ts

glaucia86 avatar Jan 15 '24 20:01 glaucia86

👋 Thanks for contributing @glaucia86! We will review the pull request and get back to you soon.

github-actions[bot] avatar Jan 15 '24 20:01 github-actions[bot]