Giter Club home page Giter Club logo

gen-ai-cooking_app's Introduction

Recipe Generator

This Streamlit app allows users to generate diverse cooking recipes based on their preferences for country, vegetarian or non-vegetarian dishes, and optional specific ingredients. The recipe generation is powered by OpenAI's GPT-3.5 Turbo model.

Getting Started

To run this recipe generator locally, follow these steps:

  1. Clone the repository:

    git clone [https://github.com/Nabeel-ashrif/Gen-AI-cooking_app.git]
  2. Install the required dependencies:

    pip install openai python-dotenv streamlit
  3. Create a .env file in the project directory and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here

    Obtain your API key by signing up at OpenAI.

  4. Run the Streamlit app:

    streamlit run app.py

    Replace app.py with the actual filename if it's different.

Usage

  1. Select a country from the dropdown menu.
  2. Choose between "Vegetarian," "Non-Vegetarian," or "No Preference" for the type of dish.
  3. Optionally, enter other rquirements in the text input.
  4. Click the "Generate Recipe" button to generate a cooking recipe based on the provided inputs.

Code Structure

  • app.py: Contains the Streamlit app code, including user interface and interaction.
  • openai.py: Wraps OpenAI's API calls for generating recipes using the GPT-3.5 Turbo model.

Environment Variables

Ensure you have a .env file in the project directory with the following content:

OPENAI_API_KEY=your_api_key_here

Dependencies

License

Feel free to contribute or report issues. Happy cooking! ๐Ÿฒ

gen-ai-cooking_app's People

Contributors

nabeel-ashrif avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.