Handylabel / Web_app /templates /compare_data.html
Imsachinsingh00's picture
Reinitializing project for new Hugging Face Space
d172d27
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Compare CSV Data</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-5">
<h2 class="mb-4">Compare Original and Updated CSV</h2>
<div class="row">
<div class="col-md-6">
<h3>Original Data</h3>
<table class="table table-bordered">
<thead>
<tr>
{% for column in columns %}
<th>{{ column }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in original_data %}
<tr>
{% for column in columns %}
<td>{{ row[column] }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="col-md-6">
<h3>Updated Data</h3>
<table class="table table-bordered">
<thead>
<tr>
{% for column in columns %}
<th>{{ column }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in updated_data %}
<tr>
{% for column in columns %}
<td>{{ row[column] }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<a href="{{ url_for('download_csv_updated') }}" class="btn btn-primary mt-4">Download Updated CSV</a>
</div>
</body>
</html>