Skip to content

Latest commit

 

History

History
41 lines (37 loc) · 1.05 KB

File metadata and controls

41 lines (37 loc) · 1.05 KB

Smart Food Classifier

  1. Train a model using teachablemachine.withgoogle.com
  2. We had trained with images of Vegetables, Fruits, Snacks and Drinks
  3. Train the Model
  4. Download the Model
  5. The downloaded model is placed in static/my_model directory
  6. Install python on your machine
  7. Run command to enable virtual environment
python -m venv venv
  1. If you are using windows, run this command to activate virtual environment
source ./venv/Scripts/activate
  1. If using ubuntu or mac, run this command to activate virtual environment
./venv/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Create Gemini API Key from Google AI Studio
  2. Create a .env file and add this:
GEMINI_API_KEY=your_api_key_here
  1. Run the following command, to run application
python app.py
  1. Added a shareable link for model:
https://teachablemachine.withgoogle.com/models/pHQ_FEGV2/

alt