Prathamesh1420
commited on
Upload 2 files
Browse files- templates/index.html +20 -0
- templates/result.html +15 -0
templates/index.html
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Iris Flower Prediction</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h1>Predict Iris Flower Species</h1>
|
8 |
+
<form action="/predict" method="post">
|
9 |
+
<label for="sepal_length">Sepal Length:</label>
|
10 |
+
<input type="number" step="any" id="sepal_length" name="sepal_length" required><br>
|
11 |
+
<label for="sepal_width">Sepal Width:</label>
|
12 |
+
<input type="number" step="any" id="sepal_width" name="sepal_width" required><br>
|
13 |
+
<label for="petal_length">Petal Length:</label>
|
14 |
+
<input type="number" step="any" id="petal_length" name="petal_length" required><br>
|
15 |
+
<label for="petal_width">Petal Width:</label>
|
16 |
+
<input type="number" step="any" id="petal_width" name="petal_width" required><br>
|
17 |
+
<button type="submit">Predict</button>
|
18 |
+
</form>
|
19 |
+
</body>
|
20 |
+
</html>
|
templates/result.html
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Prediction Result</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h1>Prediction Result</h1>
|
8 |
+
<p>Sepal Length: {{ sepal_length }}</p>
|
9 |
+
<p>Sepal Width: {{ sepal_width }}</p>
|
10 |
+
<p>Petal Length: {{ petal_length }}</p>
|
11 |
+
<p>Petal Width: {{ petal_width }}</p>
|
12 |
+
<h2>Predicted Class: {{ predicted_class_name }} (Class ID: {{ predicted_class }})</h2>
|
13 |
+
<a href="/">Predict Again</a>
|
14 |
+
</body>
|
15 |
+
</html>
|