This is a Flask-based backend hosted on Hugging Face Spaces.
It predicts the species of an Iris flower (setosa, versicolor, virginica) based on sepal and petal measurements.
Frontend UI: https://lovnishverma.github.io/iris-front/
API Endpoint: POST /predict
Example JSON body:
{ "sepal_length": 5.1, "sepal_width": 3.5, "petal_length": 1.4, "petal_width": 0.2 }
Response:
{ "prediction": "setosa", "confidence": 0.98, "probabilities": { "setosa": 0.98, "versicolor": 0.01, "virginica": 0.01 } }