This project is a fun and interactive command-line application that allows users to interact with different AI chefs, each with its own unique personality and culinary expertise. Users can provide ingredients, dish names, or recipes, and the AI chefs will respond accordingly, suggesting dishes, providing recipes, or critiquing the provided recipe.
- Multiple AI chef personalities to choose from
- Suggest dish names based on provided ingredients
- Provide detailed recipes for given dish names
- Critique and suggest improvements for provided recipes
Before installing project dependencies, it's recommended to set up a Python virtual environment. This helps to keep dependencies required by different projects separate by creating isolated environments for them. Follow these steps to set up your virtual environment and install the required packages.
-
Set Up Virtual Environment:
If you don't have a virtual environment yet, create one by running:
python3 -m venv env
Activate the virtual environment:
-
On Unix/macOS, run:
source .venv/bin/activate
-
On Windows, run:
env\Scripts\activate.bat
-
-
Install Dependencies:
With the virtual environment activated, install the project dependencies by running:
pip install -r requirements.txt
This command installs all the necessary packages as specified in the
requirements.txt
file, ensuring that you have the right versions needed for the project.pip freeze > requirements.txt to save the state environment source .venv/bin/activate to activate virtual Environment pip install openai to install A packages verify that openai is installed by running pip freeze again.
Below is the file and folder structure of the AI Chef Experience project:
ai_bootcamp_weekend_exercise
├── .venv/
├── chefs/
│ ├── brazilian_chef.py
│ ├── dutch_chef.py
│ ├── italian_chef.py
│ └── jamaica_chef.py
│ └── surinamese_chef.py
├── utils/
│ ├── base_chef.py
│ └── chef_interface.py
├── .gitignore
├── main.py
├── README.md
└── requirements.txt
ai_chefs/
: Contains AI chef personalities and their functions.utils/
: Contains utility functions and classes, such as base_chef and the chef_interface.main.py
: The main application entry point.requirements.txt
: Project dependencies.README.md
: Project documentation.
- Run the
main.py
script. - Select the desired AI chef personality.
- Choose the input type: "ingredients", "dish", or "recipe".
- Follow the prompts and interact with the AI chef.