File size: 3,208 Bytes
8a6b560
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Prediction Result</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            text-align: center;
            margin: 100px;
            background-color: #D9EEE1;
            background-image: url('https://img.freepik.com/premium-vector/circuit-board-motherboard-blue-technology-background_322958-38.jpg');
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: 100% 100%;
        }
.topnav {
  overflow: hidden;
  background-color: #333;
  margin-top: -70px;
    background-size: 10px;
}
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 12px 10px;
  text-decoration: none;
  font-size: 25px;
}
.topnav a:hover {
  background-color: #ddd;
  color: black;
}
.topnav a.active {
  background-color: #333;
  color: white;
}
        h1 {
            color: #333;
        }

        img {
            max-width: 100%;
            height: auto;
            border-radius: 2px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin-top: 30px;
        }

        p {
            font-size: 18px;
            color: #fff;
            margin-top: 10px;
        }
form {
            max-width: 600px;
            max-height: 1500px;
            margin: 10px auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .prediction-info {
            margin-top: 10px;
            padding: 10px;
            background-color: deepskyblue;
            border-radius: 10px;
            border: dodgerblue 2px solid;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            display: inline-block;
        }

        .prediction-info b {
            color: #333;
        }

        .image-info {
            margin-top: 10px;
            color: #fff;
        }
a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}

    </style>
</head>
<body>
<div class="topnav">

    <a class="navbar-brand" href="http://127.0.0.1:8000/predict/">Attendify</a>
  <a class="active">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ATTENDANCE MARKED</a>
</div>
<div>
    <h1></h1>
</div>
<form method="post" enctype="multipart/form-data" type="color" id="favcolor" name="favcolor" value="#ffffff">
    {% if image_url %}
        <img src="{{ image_url }}" alt="Uploaded Image" width="25%">
    {% endif %}

    <div class="prediction-info">
        <p><b>Predicted Label:</b> {{ predicted_label }}</p>
        {% if image_name %}
            <p class="image-info"><b>Actual Label:</b> {{ image_name }}</p>
        {% endif %}
    </div>
</form>
</body>
</html>