Spaces:
Build error
A newer version of the Streamlit SDK is available: 1.57.0
title: Tea Disease Detector
emoji: π
colorFrom: red
colorTo: blue
sdk: streamlit
sdk_version: 1.44.1
app_file: app.py
pinned: false
license: apache-2.0
short_description: AI-powered tea disease detector.
Tea Disease Detector π
This project provides a cloud-deployed deep learning application that can automatically detect and classify tea leaf diseases from uploaded or captured images. It is designed for researchers, tea growers, and agricultural practitioners who need quick insights into plant health.
π± Supported Classes
The model classifies four categories:
glβ Green Leaf (Healthy)rrβ Red Rustrsmβ Red Spider Mitebbβ Brown Blight
Each detection is accompanied by a disease description and the prediction confidence.
π§ Model Details
- Model format: TensorFlow Lite (
.tflite) - Architecture: Custom CNN-based two-stage pipeline
- Optimized for lightweight deployment and fast inference
- Input size: 640 Γ 640
- Output: Probability distribution across four classes
The .tflite models are hosted directly in the Hugging Face dataset repository and fetched automatically at runtime.
π Dataset
The training dataset is available on Hugging Face:
π TeaLeafNet Dataset
π Deployment
This application has been deployed on two platforms:
Streamlit Cloud
π Tea Disease Detector (Streamlit Cloud)Hugging Face Spaces
π Tea Disease Detector (Hugging Face)
Both deployments run the same Streamlit app.py, ensuring consistent results.
π₯οΈ Features
- π€ Upload images (
jpg,jpeg,png) - π· Capture leaf image using webcam
- β‘ Real-time disease detection with probability scores
- π Disease-specific descriptions
- π Works on both Hugging Face Spaces and Streamlit Cloud
π οΈ Local Installation & Usage
To run the app locally:
1. Clone the repository
git clone https://github.com/your-username/tea-disease-detector.git
cd tea-disease-detector
### 2. Install dependencies
```bash
pip install -r requirements.txt
### 3. Run Streamlit app
```bash
streamlit run app.py
The app will be available at http://localhost:8501/
## π¦ Requirements
The app uses the following main libraries:
- streamlit
- tensorflow
- opencv-python-headless
- numpy
## π License
This project is licensed under the Apache 2.0 License.
## π Acknowledgements
- Dataset: TeaLeafNet
- Deployment: Hugging Face Spaces
& Streamlit Cloud
-- Developed by: Debashis Dey