A newer version of the Gradio SDK is available: 6.25.0
metadata
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 aStandardScaler + KNNmodel withGridSearchCVand savesmodel.joblib.app.py: Gradio UI for interactive predictions.
Running locally
pip install -r requirements.txt
python train.py
python app.py
Notes
- The app will auto-train the model if
model.joblibis missing.