GithubHelp home page GithubHelp logo

aichef's Introduction

AI Chef

Welcome to the AI Chef project! This project allows you to select three ingredients and generates a recipe and an image based on those ingredients using artificial intelligence. The generated recipe is presented in a modal with a creative and fun title, the selected ingredients, and the instructions. Let's get started!

Installation

To use the AI Chef project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/ai-chef.git
    
  2. Open the project folder:

    cd ai-chef
    
  3. Create a config.js file in the project root directory.

  4. In the config.js file, add the following code:

    // config.js
    
    const _CONFIG_ = {
        API_BASE_URL: "https://api.example.com", // Replace with the base URL of your API
        API_KEY: "YOUR_API_KEY", // Replace with your actual API key
        GPT_MODEL: "your_gpt_model_name" // Replace with the name of your GPT model
    };

    Replace the API_BASE_URL with the base URL of your API, API_KEY with your actual API key, and GPT_MODEL with the name of your GPT model.

  5. Save the config.js file.

  6. Open the index.html file in your web browser.

That's it! Now you're ready to start using the AI Chef project.

Usage

  1. Select Ingredients:

    • Click on the ingredients displayed on the screen to add them to your recipe bowl. You can select up to three ingredients.
    • The selected ingredients will be displayed in the bowl slots.
  2. Create Recipe:

    • Once you have selected three ingredients, the "Cook" button will become visible.
    • Click on the "Cook" button to create a recipe based on the selected ingredients.
  3. View Recipe and Image:

    • After clicking the "Cook" button, a modal will appear displaying the generated recipe and an image related to the recipe.
    • The recipe includes a creative and fun title, the selected ingredients, and the instructions.
    • The image visually represents the recipe.

Please note that this project relies on external AI services and APIs. Make sure to review and comply with their respective terms and conditions.


Enjoy your cooking adventure with the AI Chef project! If you have any questions or need assistance, please feel free to reach out.

aichef's People

Contributors

aligunez 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.