zhao-stanley / chroma-ai

Write about your current mood, the lyrics of your favorite song, or even a random thought that popped into your head — AI will do the rest.

Home Page:https://chroma.szhao.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Chroma AI - Generate gradients based on your mood using AI | Product Hunt

Getting Started

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.

How does it work?

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.

Credits

About

Write about your current mood, the lyrics of your favorite song, or even a random thought that popped into your head — AI will do the rest.

https://chroma.szhao.dev

License:MIT License


Languages

Language:JavaScript 98.4%Language:CSS 1.6%