UlrickBL commited on
Commit
3a86074
·
verified ·
1 Parent(s): 8eacfd8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -5
index.html CHANGED
@@ -436,14 +436,12 @@
436
  });
437
  makeResizable(); // Re-apply resizable functionality after table population
438
  }
439
-
440
- // Close modal on overlay click
441
  overlay.addEventListener('click', () => {
442
  overlay.style.display = 'none';
443
  modal.style.display = 'none';
444
  });
445
 
446
- // Filter change listener
447
  metricFilter.addEventListener('change', () => {
448
  const filterValue = metricFilter.value;
449
  populateTable(parsedCSV.headers, parsedCSV.rows, filterValue, 0); // Re-populate table with new filter
@@ -451,7 +449,6 @@
451
 
452
  let parsedCSV;
453
 
454
- // --- UNCOMMENT THE FOLLOWING BLOCK TO LOAD LIVE DATA FROM HUGGING FACE ---
455
  loadCSVFromHuggingFace('UlrickBL/benchmark_overview', 'benchmark_overview.csv', window.huggingface.variables.HF_TOKEN)
456
  .then(({ headers, rows }) => {
457
  parsedCSV = { headers, rows };
@@ -460,7 +457,6 @@
460
  })
461
  .catch(error => {
462
  console.error("Failed to load CSV data:", error);
463
- // Display a user-friendly message if data loading fails
464
  tableBody.innerHTML = '<tr><td colspan="7" style="text-align: center; color: #ff6b6b;">Failed to load data. Please check the dataset link or your internet connection.</td></tr>';
465
  });
466
  </script>
 
436
  });
437
  makeResizable(); // Re-apply resizable functionality after table population
438
  }
439
+
 
440
  overlay.addEventListener('click', () => {
441
  overlay.style.display = 'none';
442
  modal.style.display = 'none';
443
  });
444
 
 
445
  metricFilter.addEventListener('change', () => {
446
  const filterValue = metricFilter.value;
447
  populateTable(parsedCSV.headers, parsedCSV.rows, filterValue, 0); // Re-populate table with new filter
 
449
 
450
  let parsedCSV;
451
 
 
452
  loadCSVFromHuggingFace('UlrickBL/benchmark_overview', 'benchmark_overview.csv', window.huggingface.variables.HF_TOKEN)
453
  .then(({ headers, rows }) => {
454
  parsedCSV = { headers, rows };
 
457
  })
458
  .catch(error => {
459
  console.error("Failed to load CSV data:", error);
 
460
  tableBody.innerHTML = '<tr><td colspan="7" style="text-align: center; color: #ff6b6b;">Failed to load data. Please check the dataset link or your internet connection.</td></tr>';
461
  });
462
  </script>