You will need a OPENAI_API_KEY
in your .env
file to run this locally.
You can then start a development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 to access the application.
This app uses OpenAI's gpt-3.5-turbo
model and Vercel Edge functions with streaming. The model is instructed to analyze the sentiment of the provided text and identify the emotions present in the text. Using those emotions, the model generates a list of 4 colors commonly associated with those emotions to create a gradient.