LovnishVerma commited on
Commit
0a5f545
·
verified ·
1 Parent(s): 3bc7e77

Update templates/predictpage.html

Browse files
Files changed (1) hide show
  1. 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 prediction %}
15
- <h3>Prediction: {{ prediction }}</h3>
16
- {% endif %}
17
-
18
- <h3><a href="/">Back to Home</a></h3> <br>
19
-
20
- </body>
 
 
 
 
 
 
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>