Skip to content

ChefsKit is a online Ai Bot that can give suggestion for recipe based on what ingredients someone has right now

License

Notifications You must be signed in to change notification settings

rifat328/ChefsKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chefs Kit : Hungry ? just Generate A Recipe

ChefsKit is an online AI Bot that can suggest recipe based on the ingredients someone has right now

This project uses the Hugging Face Inference API to suggest recipes based on a list of ingredients provided by the user. It leverages the Mistral-8x7B-Instruct model to generate responses formatted in markdown for easy rendering.


Table of Contents


Features

  • Accepts a list of ingredients as input.
  • Suggests a recipe based on the provided ingredients.
  • Allows for the inclusion of additional ingredients where necessary.
  • Outputs responses in markdown format.

Technologies Used

  • React with Vite bundler
  • Hugging Face Inference API
  • JavaScript ES6
  • CSS

Setup and Installation

  1. Clone the Repository

    git clone https://github.com/rifat328/ChefsKit.git
    cd chefskit
    
  2. Install Dependencies Ensure you have Node.js installed. Then run:

    npm install
  3. Set up Environment Variables

  • Add your Hugging Face access token on API_KEY.env:
  • copy and paste your api key on this field your_huggingface_access_token
      VITE_HF_ACCESS_TOKEN_2= your_huggingface_access_token
  1. Start the Development Server
    npm run dev

Usage

  • on input field type your ingredient list and enter
  • enter at least 4 ingredient then
  • press Generate Button and wait .
  • now Scroll and follow alonge the recipe.

Project Screen Shoot

Recipe Example Recipe Example 2

Error Handling

  • HTTP 429: Too Many Requests
  • Rate limit errors are logged to the console. To mitigate, ensure API calls are spaced out or use a caching mechanism.
  • API Token Errors Ensure the Hugging Face token in the .env file is valid and active.

License

  • This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3. See the LICENSE file for details.

About

ChefsKit is a online Ai Bot that can give suggestion for recipe based on what ingredients someone has right now

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published