Spaces:
Running
Running
metadata
title: Sasya AI
emoji: 🌾
colorFrom: green
colorTo: yellow
sdk: docker
app_port: 7860
pinned: false
license: mit
short_description: Crop disease detection & farmer advisory for India
Sasya AI
AI-powered crop disease detection and farmer advisory for Indian farmers.
- Gradio UI at
/— try disease detection & chat in browser - REST API at
/docs— for Expo mobile & web frontend
Models
| Component | Model |
|---|---|
| Disease CNN | EfficientNet-V2-S (143 classes, 30 crops) |
| Speech | Whisper Small |
| Translation | NLLB-200 distilled 600M |
| Advisory | TinyLlama 1.1B + agricultural LoRA (RAG, no hallucination) |
Mobile integration
EXPO_PUBLIC_API_URL=https://neel2601-sasya-ai.hf.space
API Endpoints
GET /healthPOST /image-diagnosis—explain=truefor TinyLlama advisoryPOST /chat— KB retrieval → TinyLlama rewritePOST /chat-with-imagePOST /speech-to-textPOST /voice-chatPOST /translatePOST /text-to-speech
Environment
| Variable | Default | Description |
|---|---|---|
HF_TOKEN |
— | For private model repos |
USE_WHISPER_FINETUNE |
0 |
Use local Whisper fine-tune |
ELEVENLABS_API_KEY |
— | Optional premium TTS |
Disease weights: Neel2601/sasya-disease-v2