Ever had some ingredients on hand, but not know what to make? Introducing AI Chef! AI Chef generates recipes for you based on whatever ingredients you have on hand. It generates a recipe from the following parameters:
- 🍛 Type (genre) of food
- 🥘 Available ingredients
- 🔌 Available appliances
- 🥗 Dietary restrictions
- 🍽️ Number of servings
- 💰 Price range
-
Create an API key through OpenAI. First, create an OpenAI account, and go to this link.
-
Click "Create new secret key," then name it, and click "Create secret key." Copy this key and save it.
-
Create a file in your local folder named ".env". Write the line
OPENAI_API_KEY = ...
where "..." represents your API key.
-
(Recommended) Create a virtual environment (venv) to run this file.
-
Inside your terminal, run the command:
pip install -r requirements.txt
-
Inside your terminal, run the command:
streamlit run \main.py
-
This will pull up a window with the website. Enjoy!
-
Previous commits may show an API key. This key has since been deactivated. Nice try! 🙅♂️
-
Each run of this costs ~$0.04. This can be lowered by using DALLE-2 instead of DALLE-3 (main.py line 40) 💰
-
This project was voted best LLM project in our section. Thanks to Dr. Zibo Wang for the guidance with this project!