Create templates/index.html
Browse files- templates/index.html +28 -0
templates/index.html
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Iris Flower Prediction</title>
|
| 5 |
+
<style>
|
| 6 |
+
body { font-family: Arial, sans-serif; margin: 40px; text-align: center; }
|
| 7 |
+
form { margin: 20px auto; width: 300px; }
|
| 8 |
+
input { margin: 5px; padding: 8px; width: 90%; }
|
| 9 |
+
button { padding: 10px; margin-top: 10px; background: #4CAF50; color: white; border: none; cursor: pointer; }
|
| 10 |
+
button:hover { background: #45a049; }
|
| 11 |
+
.result { font-size: 20px; color: darkblue; margin-top: 20px; }
|
| 12 |
+
</style>
|
| 13 |
+
</head>
|
| 14 |
+
<body>
|
| 15 |
+
<h1>Iris Flower Prediction</h1>
|
| 16 |
+
<form method="post">
|
| 17 |
+
<input type="text" name="sepal_length" placeholder="Sepal Length" required><br>
|
| 18 |
+
<input type="text" name="sepal_width" placeholder="Sepal Width" required><br>
|
| 19 |
+
<input type="text" name="petal_length" placeholder="Petal Length" required><br>
|
| 20 |
+
<input type="text" name="petal_width" placeholder="Petal Width" required><br>
|
| 21 |
+
<button type="submit">Predict</button>
|
| 22 |
+
</form>
|
| 23 |
+
|
| 24 |
+
<div class="result">
|
| 25 |
+
{{ prediction_text }}
|
| 26 |
+
</div>
|
| 27 |
+
</body>
|
| 28 |
+
</html>
|