This application allows users to:
- Upload images of plants for classification
- Browse a plant library for information
- Ask questions about specific plants
- Plant Classification: Upload images to identify plant species
- Plant Library: Browse a comprehensive database of plant information
- Question Answering: Ask specific questions about plants and get AI-generated responses
This application is configured for deployment on Hugging Face Spaces using Docker.
├── main.py # FastAPI backend
├── classifier.py # Plant classification model
├── embedder.py # Image embedding model
├── llm_huggingface.py # Plant QA system
├── retrieval_system.py # Image retrieval system
├── Dockerfile # Docker configuration
├── requirements.txt # Python dependencies
└── frontend/ # React frontend
This application references the following model files, which are automatically downloaded during startup:
dino_best.pth: Classification modelembedding_best.pth: Image embedding modelplant_index_2.pkl: Retrieval system indexmerge_metadata.json: Plant metadata
These files are sourced from the Hugging Face repository: hqta1110/plant-classification-models
-
Install Python dependencies:
pip install -r requirements.txt -
Set up the frontend:
cd frontend npm install npm run build -
Run the FastAPI server:
uvicorn main:app --reload
- Classification: Upload a plant image to identify its species
- Library Mode: Browse the catalog of plants and access detailed information
- Q&A: Ask questions about specific plants and receive detailed answers
[Specify your license information here]