| <html> | |
| <head> | |
| <title>Iris Prediction</title> | |
| </head> | |
| <body> | |
| <h2>Iris Flower Prediction</h2> | |
| <form action="/predict" method="post"> | |
| Sepal Length: <input type="text" name="sepal_length"><br> | |
| Sepal Width: <input type="text" name="sepal_width"><br> | |
| Petal Length: <input type="text" name="petal_length"><br> | |
| Petal Width: <input type="text" name="petal_width"><br> | |
| <input type="submit" value="Predict"> | |
| </form> | |
| {% if result is defined %} | |
| <h3>Predicted Class: {{ result }}</h3> | |
| {% endif %} | |
| </body> | |
| </html> | |