Update templates/index.html
Browse files- templates/index.html +5 -0
templates/index.html
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
<title>PREDICTING IRIS FLOWER SPECIES</title>
|
| 3 |
<body>
|
| 4 |
<div>
|
|
|
|
|
|
|
| 5 |
<label>SEPAL LENGTH:</label>
|
| 6 |
<input type='text' name='sl' placeholder='sepal_length'><br>
|
| 7 |
<label>SEPAL WIDTH:</label>
|
|
@@ -12,5 +14,8 @@
|
|
| 12 |
<input type ='text' name='pw' placeholder='petal_width'><br>
|
| 13 |
<input type='submit' value='submit' style:color='red'>
|
| 14 |
</div>
|
|
|
|
|
|
|
|
|
|
| 15 |
</body>
|
| 16 |
</html>
|
|
|
|
| 2 |
<title>PREDICTING IRIS FLOWER SPECIES</title>
|
| 3 |
<body>
|
| 4 |
<div>
|
| 5 |
+
<h1>Iris Flower Species Prediction</h1>
|
| 6 |
+
<form action="/predict" method="post">
|
| 7 |
<label>SEPAL LENGTH:</label>
|
| 8 |
<input type='text' name='sl' placeholder='sepal_length'><br>
|
| 9 |
<label>SEPAL WIDTH:</label>
|
|
|
|
| 14 |
<input type ='text' name='pw' placeholder='petal_width'><br>
|
| 15 |
<input type='submit' value='submit' style:color='red'>
|
| 16 |
</div>
|
| 17 |
+
{% if result %}
|
| 18 |
+
<h2>Predicted Species: {{ result }}</h2>
|
| 19 |
+
{% endif %}
|
| 20 |
</body>
|
| 21 |
</html>
|