Spaces:
Running
Running
File size: 4,024 Bytes
7b46bd8 |
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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Database Results</title>
<!-- Custom Styles -->
<style>
body {
font-family: 'Roboto', sans-serif;
background-image: url('static/brain.gif');
background-position: center;
background-size: cover;
color: #fff;
padding-top: 20px;
}
h1 {
text-align: center;
font-size: 2rem;
font-weight: bold;
color: #fff;
}
.stats-container {
width: 90%;
margin: 20px auto;
text-align: center;
background-color: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}
.stats-container h2 {
font-size: 1.5rem;
margin: 10px 0;
color: #fff;
}
table {
width: 90%;
margin: 30px auto;
border-collapse: collapse;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}
th, td {
border: 1px solid #ddd;
padding: 12px 18px;
text-align: center;
font-size: 1.1rem;
}
th {
background-color: #343a40;
color: #fff;
}
td {
background-color: rgba(255, 255, 255, 0.1);
color: #fff;
}
tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.15);
}
tr:hover {
background-color: rgba(255, 255, 255, 0.3);
}
.footer {
text-align: center;
margin-top: 30px;
color: #ccc;
font-size: 0.9rem;
}
@media (max-width: 767px) {
h1 {
font-size: 1.6rem;
}
table {
width: 100%;
}
th, td {
padding: 10px 12px;
font-size: 1rem;
}
}
</style>
</head>
<body>
<!-- Page Title -->
<h1>Stored Results</h1>
<!-- Stats Section -->
<div class="stats-container">
<h2>Total Patients: {{ total_patients }}</h2>
<h2>Total with Tumor: {{ tumor_count }}</h2>
<h2>Total without Tumor: {{ no_tumor_count }}</h2>
</div>
<!-- Table Container -->
<div class="table-container">
<table>
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Phone</th>
<th>Gender</th>
<th>Age</th>
<th>Prediction</th>
<th>Confidence Score</th>
<th>Timestamp</th>
</tr>
</thead>
<tbody>
{% for result in results %}
<tr>
<td>{{ result.firstname }}</td>
<td>{{ result.lastname }}</td>
<td>{{ result.email }}</td>
<td>{{ result.phone }}</td>
<td>{{ result.gender }}</td>
<td>{{ result.age }}</td>
<td>{{ result.prediction }}</td>
<td>{{ result.confidence_score }}</td>
<td>{{ result.timestamp }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<!-- Footer -->
<div class="footer">
<p>© 2024 Brain Tumor Detection - All Rights Reserved</p>
</div>
</body>
</html>
|