A digital buddy for farmers that provides voice assistance, question answering, crop detection, and weather information in multiple Indian languages.
- Voice Assistant: Ask questions and get spoken responses in your language
- Text Questions: Type questions and get answers in your preferred language
- Crop Detection: Upload plant images to identify crops
- Weather Information: Get weather data for any location in your language
- English
- Hindi
- Tamil
- Kannada
- Telugu
- Marathi
-
Install Python requirements:
pip install -r requirements.txt -
Set up environment variables in a
.envfile:GEMINI_API_KEY=your_gemini_api_key OPENWEATHER_API_KEY=your_openweather_api_key -
Run the backend server:
python main.pyThe server will run at http://127.0.0.1:8000
-
Install dependencies:
npm install -
Run the frontend development server:
npm run dev -
Open the app in your browser at the URL shown in the terminal
/ask- Ask questions via text/start_voice_assistant/{language}- Start voice assistant in a specific language/detect_crop- Detect crop from uploaded image/weather/{city_name}- Get weather information for a city
- Backend: FastAPI, Python, SpeechRecognition, Google Gemini AI
- Frontend: React, TypeScript, Tailwind CSS, shadcn/ui
- AI/ML: Google Gemini, ResNet18, Google Translator