|
<!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"> 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> |
|
|