- Clone this repo
- Add your OpenAI API key to .env file (sign up at https://beta.openai.com for account / key)
- Install node_modules by running
npm install
oryarn install
in terminal - In
pages/api/openai.js
you construct your request to OpenAI API - In
pages/index.js
you tweak your UI/UX - start the dev server with
yarn dev
ornpm run dev
command
For more stuff like this checkout lablab.ai
If you don't have a setup on your computer that allow to run code locally, then use https://replit.com/
For more on Artificial Intelligence, checkout this links