File size: 2,109 Bytes
9e9a61f
44b6d34
9e9a61f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7eecb1c
9e9a61f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
    <title>PREDICTING IRIS FLOWER SPECIES</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background-image: url('https://media.giphy.com/media/QNFhOolVeCzPQ2Mx85/giphy.gif');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            font-family: Arial, sans-serif;
            color: white;
        }

        .container {
            background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
            padding: 30px;
            margin: 80px auto;
            width: 400px;
            border-radius: 15px;
            text-align: center;
        }

        input[type="text"], input[type="submit"] {
            padding: 10px;
            width: 90%;
            margin: 10px 0;
            border-radius: 5px;
            border: none;
        }

        input[type="submit"] {
            background-color: #4CAF50;
            color: white;
            cursor: pointer;
        }

        h1, h2 {
            color: #00ffe1;
        }

        label {
            float: left;
            margin-left: 20px;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Iris Flower Species Prediction</h1>
        <form action="/predict" method="post">
            <label>SEPAL LENGTH:</label><br>
            <input type="text" name="sl" placeholder="sepal_length" required><br>

            <label>SEPAL WIDTH:</label><br>
            <input type="text" name="sw" placeholder="sepal_width" required><br>

            <label>PETAL LENGTH:</label><br>
            <input type="text" name="pl" placeholder="petal_length" required><br>

            <label>PETAL WIDTH:</label><br>
            <input type="text" name="pw" placeholder="petal_width" required><br>

            <input type="submit" value="Predict">
        </form>

        {% if result %}
            <h2>Predicted Species: {{ result }}</h2>
        {% endif %}
    </div>
</body>
</html>