<!DOCTYPE html>
<html>
<head>
    <title>Malware bytes prediction KNeighbours</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        table, th, td {
            border: 1px solid black;
        }
        th, td {
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <h1>Malware bytes predictions KNeighbours</h1>

    {% if error %}
        <p style="color:red">{{ error }}</p>
    {% else %}
        <table>
            <thead>
                <tr>
                    {% for heading in data.0 %}
                        <th>{{ heading }}</th>
                    {% endfor %}
                </tr>
            </thead>
            <tbody>
                {% for row in data|slice:"1:" %}
                    <tr>
                        {% for cell in row %}
                            <td>{{ cell }}</td>
                        {% endfor %}
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% endif %}
</body>
</html>
