Spaces:
Running
Running
File size: 1,516 Bytes
dcd798b f81f0ae dcd798b f81f0ae dcd798b f81f0ae dcd798b f81f0ae dcd798b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CSV Table</title>
<style>
table {
border-collapse: collapse;
width: 100%;
margin-top: 20px;
}
th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h2>CSV Data</h2>
<table id="csv-table">
<!-- CSV data will be inserted here -->
</table>
<script>
// Fetch CSV data
fetch('merged-averaged-model_timings_2.1.0_12.1_NVIDIA_A10G_False.csv')
.then(response => response.text())
.then(csvData => {
// Parse CSV data
var rows = csvData.trim().split('\n');
var table = document.getElementById('csv-table');
// Insert data into table
rows.forEach(function(row) {
var cells = row.split(',');
var tr = document.createElement('tr');
cells.forEach(function(cell) {
var td = document.createElement('td');
td.textContent = cell.trim();
tr.appendChild(td);
});
table.appendChild(tr);
});
});
</script>
</body>
</html>
|