Spaces:
Sleeping
Sleeping
Create dbresults.html
Browse files- templates/dbresults.html +56 -0
templates/dbresults.html
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Database Results</title>
|
| 7 |
+
<style>
|
| 8 |
+
table {
|
| 9 |
+
width: 100%;
|
| 10 |
+
border-collapse: collapse;
|
| 11 |
+
margin: 20px 0;
|
| 12 |
+
}
|
| 13 |
+
th, td {
|
| 14 |
+
border: 1px solid #ddd;
|
| 15 |
+
padding: 8px;
|
| 16 |
+
text-align: center;
|
| 17 |
+
}
|
| 18 |
+
th {
|
| 19 |
+
background-color: #f4f4f4;
|
| 20 |
+
}
|
| 21 |
+
</style>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<h1>Stored Results</h1>
|
| 25 |
+
<table>
|
| 26 |
+
<thead>
|
| 27 |
+
<tr>
|
| 28 |
+
<th>First Name</th>
|
| 29 |
+
<th>Last Name</th>
|
| 30 |
+
<th>Email</th>
|
| 31 |
+
<th>Phone</th>
|
| 32 |
+
<th>Gender</th>
|
| 33 |
+
<th>Age</th>
|
| 34 |
+
<th>Prediction</th>
|
| 35 |
+
<th>Confidence Score</th>
|
| 36 |
+
<th>Timestamp</th>
|
| 37 |
+
</tr>
|
| 38 |
+
</thead>
|
| 39 |
+
<tbody>
|
| 40 |
+
{% for result in results %}
|
| 41 |
+
<tr>
|
| 42 |
+
<td>{{ result.firstname }}</td>
|
| 43 |
+
<td>{{ result.lastname }}</td>
|
| 44 |
+
<td>{{ result.email }}</td>
|
| 45 |
+
<td>{{ result.phone }}</td>
|
| 46 |
+
<td>{{ result.gender }}</td>
|
| 47 |
+
<td>{{ result.age }}</td>
|
| 48 |
+
<td>{{ result.prediction }}</td>
|
| 49 |
+
<td>{{ result.confidence_score }}</td>
|
| 50 |
+
<td>{{ result.timestamp }}</td>
|
| 51 |
+
</tr>
|
| 52 |
+
{% endfor %}
|
| 53 |
+
</tbody>
|
| 54 |
+
</table>
|
| 55 |
+
</body>
|
| 56 |
+
</html>
|