ppryan's picture
initial iris classification space
dc1dc20
|
Raw
History Blame Contribute Delete
519 Bytes
---
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.