This project is a web application that leverages OpenAI's ChatGPT to generate custom color palettes based on user input. Simply type in a theme, mood, or instructions, and receive a beautifully curated set of 2 to 8 colors.
- AI-Powered Color Generation: Utilizes OpenAI's GPT-4 model to interpret user prompts and generate relevant color palettes.
- Flexible Output: Generates between 2 to 8 colors per palette, depending on the complexity of the prompt.
- Interactive UI: Click on any color's HEX code to copy it to your clipboard for easy use in your projects.
- Responsive Design: Works seamlessly on both desktop and mobile devices.
- Visit the application's main page.
- Enter a theme, mood, or specific instructions in the provided text input.
- Click the "Generate" button or press Enter.
- View your custom color palette displayed on the screen.
- Hover over any color to see its HEX code.
- Click on the HEX code to copy it to your clipboard.
- Frontend: HTML, CSS, JavaScript
- Backend: Python with Flask
- AI Model: OpenAI GPT-4
- Deployment: Docker, Nginx
To set up this project locally:
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Set up your
.envfile with your OpenAI API key:OPENAI_API_KEY=your_api_key_here - Run the Flask development server:
flask run
This project is configured for deployment using Docker and Nginx. Refer to the Dockerfile and docker-compose.yml for more details on the deployment setup.
Contributions are welcome! Please feel free to submit a Pull Request.
[Add your chosen license here]
- OpenAI for providing the GPT-4 model
- Flask community for the excellent web framework
- All contributors and users of this project