Discover Your Coffee DNA – Personalized Brews, Perfectly Matched
CoffeeDNA is an interactive, AI-driven chat application that personalizes coffee recommendations based on users' unique flavor profiles and preferences. The app allows users to set preferences such as language, tone, detail level, and desired coffee characteristics to receive the perfect coffee match tailored just for them.
- Personalized Coffee Recommendations: Users receive tailored coffee suggestions based on their input and preference settings.
- Customizable Preferences: Language, tone, and level of detail can be set to match each user’s style.
- Flavor Profile Matching: Unique flavor preferences, including bean type and coffee strength, refine recommendations.
- Chat History with Message Re-Selection: Users can select previous messages to use as new input, expanding upon earlier conversations.
- Python 3.7+: Ensure you have Python installed on your machine.
- Streamlit: Install Streamlit for the web interface.
- Other dependencies can be found in
requirements.txt
.
-
Clone the repository:
git clone https://github.com/bambangirawans/coffeedna.git cd coffeedna
-
Create and activate a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API Key:
- Create a
.env
file in the root directory:touch .env
- Add your
OPENAI_API_KEY
to the.env
file:OPENAI_API_KEY=your_openai_api_key_here
This key is required for accessing OpenAI’s API to generate coffee recommendations.
- Create a
-
Run the application:
streamlit run app.py
-
Open http://localhost:8501 in your browser to access the application.
- Set Preferences: Use the sidebar to select language, tone, detail level, and specify your coffee preferences (e.g., flavor profile and bean type).
- Chat: Enter your coffee preference query in the chat box and click "Send." The AI will respond with a tailored coffee recommendation.
- Re-use Previous Messages: Click "Use as Input" on any previous message to modify and send it as a new query, enhancing the conversation.
- clear all chat :Type 'clear all chat' to start a new conversation. Adjust your preferences on the sidebar to fine-tune recommendations.
The following environment variable is required for CoffeeDNA to work correctly:
OPENAI_API_KEY
: The API key to access OpenAI’s API. Set this in the.env
file as described in the Getting Started section.
We welcome contributions to make CoffeeDNA even better! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Add new feature"
- Push to your fork and create a pull request.
This project is licensed under the GNU General Public License v3.0 License. See the LICENSE file for details.
- CoffeeDNA is inspired by the love for personalized coffee experiences.
- Special thanks to all contributors and users who make this project possible.
For questions or feedback, feel free to reach out or open an issue on this repository!
Happy brewing with CoffeeDNA! ☕