This project utilizes OpenAI's text generation model to suggest recipes based on a list of ingredients & prefrences provided by the user.
2023-08-11-16-50-42.mp4
- The user inputs time available (minutes), number of people, experience level, diet preference and list of available ingredients (comma-separated) into the provided textbox.
- The system generates custom prompts using the provided ingredients.
- OpenAI's text generation model generates recipe suggestions based on the prompts.
- The suggested recipes are displayed in the output textbox.
- Install the required dependencies by running the following command -->
pip install gradio openai
- Set up your OpenAI API credentials by replacing
YOUR_API_KEY
with your actual API key in the code - Run the application by executing the following command -->
python.app
- Access the application by opening the provided URL in your web browser.