A web application that uses AI to analyze crops for pests and diseases then advises framers on what to do.
The application consists of
The application supports the following operations:
- Account registration using your Google account.
- Analyzing images for either pests or diseases
- Chatting with an expert.
- Finding aggrovets
To work with the application locally, first make sure the following are present:
- You have a groq API key
- A Google Maps API Key.
Folow these steps to start the application:
- Clone the project repo:
git clone https://github.com/twyle/FarmBuddy.git
- Navigate to the project directory, then create the project secrets
(.env file)
:
cd FarmBuddy/farm-assistant/app
# Linux
touch .env
# Windows
# Create a file called .env in FarmBuddy/farm-assistant/app
- Add the project secrets in the
(.env file)
. This is how it should look:
GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GOOGLE_MAPS_API_KEY=AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Replace /home/lyle/Downloads/test.pt with the full path to the model
MAIZE_MODEL_DIRECTORY=/home/lyle/Downloads/test.pt
PEST_MODEL_DIRECTORY=/home/lyle/Downloads/PestNet.pkl
TOMATO_MODEL_DIRECTORY=/home/lyle/Downloads/PestNet.pkl
- Install the project requrements
pip install -r requirements.txt
- Run the application
python manage.py
- View the running application, click on ths link (http://localhost:8000)