A full-stack, AI-powered farming assistant designed for Indian farmers. Provides crop advice, disease detection, weather alerts, market prices and government schemes in multiple languages.
- Ask farming questions via text or voice input.
- Plant image analysis using AI to detect crop health and suggest treatments.
- Local weather forecast with alerts for extreme conditions.
- Crop market price lookup by state and commodity.
- Government schemes information in multiple languages.
- Multilingual support: English, Hindi, Malayalam, Tamil, Kannada.
- Backend: Python, Flask
- Frontend: HTML, CSS, JavaScript
- AI: Google Gemini API
- Data: CSV for crop prices, JSON for government schemes
- APIs: WeatherAPI for weather data
- Clone the repository
git clone https://github.com/sarthak-cs/digital-krishi-officer.git
cd digital-krishi-officer- Create a virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Add API keys Copy .env.example to .env and add your keys:
GEMINI_API_KEY=your_gemini_api_key_here
WEATHER_API_KEY=your_weather_api_key_here
- Run the Flask app
python app.py
- Open in browser
Go to
http://127.0.0.1:5000to access the app.
- Maximum plant image size: 5MB
- Supported image types: PNG, JPG, JPEG, GIF, BMP, WebP
- Voice recognition works in Chrome & Edge only