Update templates/predictpage.html
Browse files- templates/predictpage.html +26 -20
templates/predictpage.html
CHANGED
|
@@ -1,21 +1,27 @@
|
|
| 1 |
-
<html>
|
| 2 |
-
<head>
|
| 3 |
-
<title>Flask Iris</title>
|
| 4 |
-
</head>
|
| 5 |
-
<body>
|
| 6 |
-
<h1>Welcome to Predict Page</h1>
|
| 7 |
-
<form action="/predictiris" method="POST">
|
| 8 |
-
<input type="text" name="sepal_length" placeholder="Sepal Length" required><br><br>
|
| 9 |
-
<input type="text" name="sepal_width" placeholder="Sepal Width" required><br><br>
|
| 10 |
-
<input type="text" name="petal_length" placeholder="Petal Length" required><br><br>
|
| 11 |
-
<input type="text" name="petal_width" placeholder="Petal Width" required><br><br>
|
| 12 |
-
<input type="submit" value="Predict">
|
| 13 |
-
</form>
|
| 14 |
-
{% if
|
| 15 |
-
|
| 16 |
-
{
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
</html>
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<title>Flask Iris</title>
|
| 4 |
+
</head>
|
| 5 |
+
<body>
|
| 6 |
+
<h1>Welcome to Predict Page</h1>
|
| 7 |
+
<form action="/predictiris" method="POST">
|
| 8 |
+
<input type="text" name="sepal_length" placeholder="Sepal Length" required><br><br>
|
| 9 |
+
<input type="text" name="sepal_width" placeholder="Sepal Width" required><br><br>
|
| 10 |
+
<input type="text" name="petal_length" placeholder="Petal Length" required><br><br>
|
| 11 |
+
<input type="text" name="petal_width" placeholder="Petal Width" required><br><br>
|
| 12 |
+
<input type="submit" value="Predict">
|
| 13 |
+
</form>
|
| 14 |
+
{% if pred %}
|
| 15 |
+
<div class="prediction">
|
| 16 |
+
Prediction: {{ pred }}
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
<div class="pred-img">
|
| 20 |
+
<img src="/static/images/{{ pred }}.jpg" alt="{{ pred }}">
|
| 21 |
+
</div>
|
| 22 |
+
{% endif %}
|
| 23 |
+
|
| 24 |
+
<h3><a href="/">Back to Home</a></h3> <br>
|
| 25 |
+
|
| 26 |
+
</body>
|
| 27 |
</html>
|