This application detects crop diseases from images and provides information and remedies through an AI-powered chatbot.
- Plant disease detection using Clarifai AI
- Interactive chatbot for disease information
- Multilingual support
- Text-to-speech capabilities
- History tracking of predictions
-
Navigate to the backend directory:
cd backend -
Install dependencies:
pip install -r requirements.txt -
Set up environment variables by creating a
.envfile with:CLARIFAI_PAT=your_clarifai_pat SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_key GOOGLE_API_KEY=your_google_api_key # Optional, for text-to-speech -
Run the backend server:
python app.py
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Run the development server:
npm run dev -
Access the application at
http://localhost:3000
/predict- Upload an image for disease detection/history- Get prediction history/chatbot- Interact with the AI chatbot
- Backend: Flask, Clarifai API, NLTK, Google Cloud Text-to-Speech
- Frontend: Next.js, React, Tailwind CSS