Skip to content

"Discover similar ingredients using Word2Vec! This Python app suggests ingredient pairs based on semantic relationships, powered by Gensim and Gradio. Explore flavor connections effortlessly."

License

Notifications You must be signed in to change notification settings

egecandrsn/FoodPair.v0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoodPair.v0 Ingredient Recommender using Word2Vec

This repository contains a simple application that uses the Word2Vec model to recommend similar ingredients based on the user's selection. The application provides a user-friendly interface where you can select up to 6 ingredients, and it will display a list of recommended ingredients that are similar to the selected ones.

How It Works

The application utilizes the Gensim library to load a pre-trained Word2Vec model that has learned to represent words (in this case, ingredients) in a high-dimensional vector space. The model captures semantic relationships between words, allowing it to find ingredients that are similar in meaning or context.

Demo

Check out the live demo of the Ingredient Recommender application here.

Prerequisites

To run this application, you need to have Python and the required libraries installed. You can install the necessary dependencies using the following command:

pip install gensim gradio

Usage

  1. Clone this repository to your local machine:
git clone https://github.com/egecandrsn/ingredient-recommender.git
  1. Navigate to the project directory:
cd ingredient-recommender
  1. Run the application:
python app.py
  1. A web interface will open in your default web browser. You can select ingredients from the dropdown menus. Choose up to 6 ingredients, and the application will display a list of recommended ingredients based on your selection.

  2. Experiment with different ingredient combinations to explore various recommendations.

Contributing

Contributions are welcome! If you find any issues or want to add new features, feel free to create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to modify and expand upon this README as needed to provide more information about your project, its purpose, and how users can use or contribute to it.

About

"Discover similar ingredients using Word2Vec! This Python app suggests ingredient pairs based on semantic relationships, powered by Gensim and Gradio. Explore flavor connections effortlessly."

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages