Giter VIP home page Giter VIP logo

back-of-the-fridge's Introduction

Logo for back-of-the-fridge

Back of the Fridge

Create a recipe using AI with whatever you've got in your fridge - check it out here!

Back of the Fridge is a recipe website that helps users find recipes based on the ingredients they have on hand. It provides a user-friendly, efficient and easy-to-use solution for users to find recipes based on the ingredients they have on hand. Built in under 24 hours during McHacks10!

The front-end was built with React.js, Next.js, and TailwindCSS! The back-end was built with Python and Flask. Everything is hosted on Vercel! This repo is our web-app's front-end, so be sure to checkout our back-end too!

Showcase

Generating a recipe

ezgif com-gif-maker

Browsing your saved recipes

ezgif com-gif-maker (1)

Overview

Inspiration

The idea for the website came about when Alex was feeling hungry, but he didn't want to go to the store. He still wanted to make a dish with tzatziki, couscous, and onions, but he tried searching online for a recipe and couldn't find one that fit his specific ingredients. That's when he decided to enter the ingredients into a language model like ChatGPT and found a recipe that looked delicious!

Details

To create a recipe using cohere, we give cohere our ingredients, then cohere returns to us a recipe title, instructions, and a list of ingredients used. We then take that title and give it to Surp API. Surp API then asks google for the top ranking images associated with that title. We pull down one of the top images and pass that up with the recipe object to the front end.

An image is uploaded to the front end, which is passed down to the backend, which asks Eden AI to analyze the image. Eden AI is an overlay of Google Cloud Vision. Google Vision API then processes the image and gives us back possible objects with predications on what these items are. We take all possible objects and match them with an internal dictionary of approved groceries and returns those back to the front end, to then be added to the ingredients list if desired.

Challenges

Building Back of the Fridge was challenging for our team as we had to integrate several third-party services to make the website work as intended. One of the biggest challenges we faced was the time crunch, as we had to complete the project within a 24-hour tight deadline. One of the key components of the website is the integration of a natural language processing (NLP) API which helps to extract the ingredients from the user's input and match them with the appropriate recipes from our database. Integrating this API was a complex task as it required a lot of testing and fine-tuning to ensure that it was working correctly.

What's next

We hope to turn this into a mobile application as well!

back-of-the-fridge's People

Contributors

diegodofe avatar alexference avatar

Stargazers

 avatar  avatar

Watchers

 avatar

back-of-the-fridge's Issues

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.