AgriAid is an AI-powered web application that helps farmers diagnose crop diseases and get treatment recommendations in multiple languages. The application uses Google's Gemini AI to analyze text descriptions, images, and audio recordings of plant issues. Streamlit app: https://agriaid.streamlit.app/
Multilingual Support: Interface available in multiple languages including English, Hindi, Spanish, French, Tamil, Telugu, and Kannada
Multiple Input Methods:
Text descriptions of crop symptoms
Image uploads of affected plants
Audio recordings describing the issues
AI-Powered Analysis: Uses Google's Gemini AI to diagnose plant diseases and provide treatment recommendations
Audio Output: Converts diagnosis results to speech for accessibility
Responsive Design: Works on both desktop and mobile devices
Python 3.8+ Streamlit PIL (Pillow) Google Generative AI gTTS (Google Text-to-Speech) Deep Translator
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Set up your Gemini API key in Streamlit secrets:
[secrets] GEMINI_API_KEY = "your-api-key-here"
- Run the application:
streamlit run app.py
- Select your preferred language
- Choose an input method (Text, Image, or Audio)
- Provide information about your crop issue
- Click "Diagnose" to get AI-powered analysis
- View the diagnosis results and listen to the audio explanation if needed
app.py
: Main application fileutils/
: Helper modulesgemini_api.py
: Functions for interacting with Gemini AItranslation.py
: Translation utilitiestranslation_loader.py
: Loads language translationsgemini_audio.py
: Audio processing functions
- Diagnosis accuracy depends on input quality
- For critical cases, consult a professional agronomist
- Supported crops include tomatoes, potatoes, wheat, rice, and common vegetables