Skip to content

joemsomi/NutriSub-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍏 NutriSub AI

Project Description

NutriSub AI is an AI-powered tool that suggests healthier alternatives for ingredients. If an exact match isn't found, it uses fuzzy string matching to find the closest substitute.

Features

  • Ingredient substitution using a CSV dataset.

  • AI-powered fuzzy matching for similar ingredients.

  • CSV-based storage for easy expansion.

  • Runs in VS Code (future web version planned).

Technologies Used

  • Python (Core logic)

  • Pandas (Handling CSV data)

  • FuzzyWuzzy (AI-powered text matching)

  • Git & GitHub (Version control)

Installation Guide

  1. Clone the repository:

    git clone https://github.com/joemsomi/NutriSub-AI.git 
    
    cd NutriSub-AI 
    
  2. Install dependencies:

    pip install pandas fuzzywuzzy python-Levenshtein 
    
  3. Run the script:

    python main.py 
    

How to Use

  1. The script will ask you to enter an ingredient.

  2. If a healthy alternative is found, it will be displayed.

  3. If no exact match is found, AI will suggest the closest ingredient.

  4. Type exit to stop the program.

Example


Enter an ingredient you want to replace: margarine 

Did you mean 'butter'? A healthier alternative is: avocado or olive oil 

Future Improvements

  • Convert into a web app (Flask or Streamlit).

  • Deploy to AWS for online access.

  • Expand the ingredient database.

Contributing

Want to improve the project? Feel free to fork it and submit a pull request!

📧 Contact

About

Repo for my NutriSub-AI project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published