Skip to content

Commit

Permalink
Correct URL
Browse files Browse the repository at this point in the history
  • Loading branch information
danjjl committed Nov 26, 2024
1 parent bab1568 commit acae48d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions website/static/js/algorithm.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function loadResults() {

try {
// Fetch results.json file
const response = await fetch('https://epilepsybenchmarks.comresults.json');
const response = await fetch('/results.json');
if (!response.ok) {
throw new Error("Failed to load results.json.");
}
Expand Down Expand Up @@ -95,7 +95,7 @@ async function loadYAML(fileName) {
}

// Fetch the YAML file (assuming it's served from the 'algorithms' directory)
const response = await fetch(`https://epilepsybenchmarks.comalgorithms/${fileName}.yaml`);
const response = await fetch(`/algorithms/${fileName}.yaml`);
if (!response.ok) {
throw new Error('Network response was not ok');
}
Expand Down
2 changes: 1 addition & 1 deletion website/static/js/f1_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function loadResults() {
// Add a row for each algorithm
algorithms.forEach(algorithm => {
const row = document.createElement("tr");
row.appendChild(createTableCellLink(algorithm, "https://epilepsybenchmarks.comalgorithm/?algo=" + algorithm)); // Add algorithm name as row header
row.appendChild(createTableCellLink(algorithm, "/algorithm/?algo=" + algorithm)); // Add algorithm name as row header

// Add F1 score for each dataset
datasets.forEach(dataset => {
Expand Down

0 comments on commit acae48d

Please sign in to comment.