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