Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Database Results</title> | |
| <style> | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 20px 0; | |
| } | |
| th, td { | |
| border: 1px solid #ddd; | |
| padding: 8px; | |
| text-align: center; | |
| } | |
| th { | |
| background-color: #f4f4f4; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Stored Results</h1> | |
| <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> | |
| </body> | |
| </html> | |