Diff of /templates/predict.html [000000] .. [b018ba]

Switch to unified view

a b/templates/predict.html
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
    <meta charset="UTF-8">
5
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
    <title>Result Page</title>
7
    <style>
8
        body {
9
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
10
            height: 100vh;
11
            background-image: linear-gradient(to right, #8e2de2, #4a00e0);
12
            margin: 0;
13
            display: flex;
14
            flex-direction: column;
15
            justify-content: center;
16
            align-items: center;
17
            color: #fff;
18
        }
19
        .result-box {
20
            color: #040404;
21
            background-color: rgba(200, 240, 196, 0.8);
22
            padding: 20px 60px;
23
            border-radius: 10px;
24
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
25
            text-align: center;
26
            margin: 40px;
27
            max-width: 500px;
28
        }
29
        .result-box h2 {
30
            margin-bottom: 20px;
31
        }
32
        .result-message {
33
            font-size: 20px;
34
            margin-bottom: 20px;
35
        }
36
        .back-to-home-btn {
37
            background-color: hsl(286, 64%, 80%);
38
            color: #000000;
39
            font-size: 18px;
40
            font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
41
            font-weight: bold;
42
            padding: 15px 30px;
43
            border-radius: 8px;
44
            text-decoration: none;
45
            transition: background-color 0.3s ease;
46
        }
47
        .back-to-home-btn:hover {
48
            background-color: #f0f0f0;
49
        }
50
        .logo {
51
            width: 200px;
52
            height: auto;
53
            margin-bottom: 20px;
54
        }
55
56
    </style>
57
</head>
58
<body>
59
    <header>
60
        <img src="/static/NEWLOGO.png" alt="Logo" class="logo">
61
    </header>
62
63
    <div class="result-box">
64
        <h2>Result</h2>
65
        {% if prediction_result == 0 %}
66
        <div class="result-message">The patient is fit.</div>
67
        {% else %}
68
        <div class="result-message">The patient is not fit.</div>
69
        {% endif %}
70
        <!-- Display the raw prediction result -->
71
        <p>The predicted result is: {{ prediction_result }}</p>
72
    </div>
73
    <br>
74
    <br>
75
    <br>
76
77
    <div>
78
        <a href="/" class="back-to-home-btn">Back to Home</a>
79
    </div>
80
</body>
81
</html>