generative-ai-for-beginners
generative-ai-for-beginners copied to clipboard
feat: Lesson 9 - Building Image Generation Applications - TypeScript sample
This PR is a TypeScript version of Lesson 09: Building Image Generation Applications
How to run the example?
- Create a
.env
file at the root of the application and include the information forAZURE_OPENAI_ENDPOINT
andAZURE_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
- To install dependencies, navigate to (under the lesson 09):
cd:
typescript/image-generation-app
Then execute the command:
npm install
- After the necessary dependencies are installed in the application, open the terminal and run the command:
npm run build
- Finally, execute the command:
npm run start
- You will have the application running perfectly.
You can see in action in this gif below:
- Final result in dotnet sample:
- Final result in TypeScript sample:
👋 Thanks for contributing @glaucia86! We will review the pull request and get back to you soon.