Update templates/index.html
Browse files- templates/index.html +74 -19
templates/index.html
CHANGED
|
@@ -1,21 +1,76 @@
|
|
|
|
|
| 1 |
<html>
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
<
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
</div>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
{% endif %}
|
| 20 |
-
</body>
|
| 21 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>PREDICTING IRIS FLOWER SPECIES</title>
|
| 5 |
+
<style>
|
| 6 |
+
body {
|
| 7 |
+
margin: 0;
|
| 8 |
+
padding: 0;
|
| 9 |
+
background-image: url('https://media.giphy.com/media/QNFhOolVeCzPQ2Mx85/giphy.gif');
|
| 10 |
+
background-size: cover;
|
| 11 |
+
background-position: center;
|
| 12 |
+
background-repeat: no-repeat;
|
| 13 |
+
background-attachment: fixed;
|
| 14 |
+
font-family: Arial, sans-serif;
|
| 15 |
+
color: white;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
.container {
|
| 19 |
+
background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
|
| 20 |
+
padding: 30px;
|
| 21 |
+
margin: 80px auto;
|
| 22 |
+
width: 400px;
|
| 23 |
+
border-radius: 15px;
|
| 24 |
+
text-align: center;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
input[type="text"], input[type="submit"] {
|
| 28 |
+
padding: 10px;
|
| 29 |
+
width: 90%;
|
| 30 |
+
margin: 10px 0;
|
| 31 |
+
border-radius: 5px;
|
| 32 |
+
border: none;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
input[type="submit"] {
|
| 36 |
+
background-color: #4CAF50;
|
| 37 |
+
color: white;
|
| 38 |
+
cursor: pointer;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
h1, h2 {
|
| 42 |
+
color: #00ffe1;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
label {
|
| 46 |
+
float: left;
|
| 47 |
+
margin-left: 20px;
|
| 48 |
+
font-weight: bold;
|
| 49 |
+
}
|
| 50 |
+
</style>
|
| 51 |
+
</head>
|
| 52 |
+
<body>
|
| 53 |
+
<div class="container">
|
| 54 |
+
<h1>Iris Flower Species Prediction</h1>
|
| 55 |
+
<form action="/predict" method="post">
|
| 56 |
+
<label>SEPAL LENGTH:</label><br>
|
| 57 |
+
<input type="text" name="sl" placeholder="sepal_length" required><br>
|
| 58 |
+
|
| 59 |
+
<label>SEPAL WIDTH:</label><br>
|
| 60 |
+
<input type="text" name="sw" placeholder="sepal_width" required><br>
|
| 61 |
+
|
| 62 |
+
<label>PETAL LENGTH:</label><br>
|
| 63 |
+
<input type="text" name="pl" placeholder="petal_length" required><br>
|
| 64 |
+
|
| 65 |
+
<label>PETAL WIDTH:</label><br>
|
| 66 |
+
<input type="text" name="pw" placeholder="petal_width" required><br>
|
| 67 |
+
|
| 68 |
+
<input type="submit" value="Predict">
|
| 69 |
+
</form>
|
| 70 |
+
|
| 71 |
+
{% if result %}
|
| 72 |
+
<h2>Predicted Species: {{ result }}</h2>
|
| 73 |
+
{% endif %}
|
| 74 |
</div>
|
| 75 |
+
</body>
|
| 76 |
+
</html>
|
|
|
|
|
|
|
|
|