IIS_2023_1/simonov_nikita_lab_1/templates/index.html
2023-11-05 13:31:50 +04:00

44 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Модели классификации</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
color: rgb(241, 228, 228);
background-color: rgb(35, 35, 48);
}
h1 {
text-align: center;
}
table {
width: 60%;
}
td {
text-align: center;
}
</style>
</head>
<body>
<h1>Результаты моделей классификации</h1>
<table>
<tr>
<th style="width: 15%;">Модель</th>
<th style="width: 15%;">Точность</th>
<th>График</th>
</tr>
{% for model_name, results in model_results.items() %}
<tr>
<td>{{ model_name }}</td>
<td>{{ results['accuracy'] }}</td>
<td>
<img src="data:image/png;base64,{{ plot_images[model_name] }}" width="400" height="300">
</td>
</tr>
{% endfor %}
</table>
</body>
</html>