File size: 519 Bytes
1764cb1 dc1dc20 1764cb1 dc1dc20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ---
title: Iris Classification Demo
sdk: gradio
app_file: app.py
---
# Iris Classification Demo
A simple Hugging Face Space that predicts Iris species using a KNN classifier.
## What’s inside
- `train.py`: trains a `StandardScaler + KNN` model with `GridSearchCV` and saves `model.joblib`.
- `app.py`: Gradio UI for interactive predictions.
## Running locally
```bash
pip install -r requirements.txt
python train.py
python app.py
```
## Notes
- The app will auto-train the model if `model.joblib` is missing.
|