0xClemo commited on
Commit
9142f7b
·
verified ·
1 Parent(s): 5eb360a

Upload static/index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. static/index.html +3 -1
static/index.html CHANGED
@@ -1264,6 +1264,8 @@ document.addEventListener('keydown', e => {
1264
  if (activeTab === 'sub') runNeighbors();
1265
  else if (activeTab === 'compass') runSlerp();
1266
  else if (activeTab === 'modes') runModes();
 
 
1267
  }
1268
  });
1269
 
@@ -1384,7 +1386,7 @@ function addToRecipeBasket() {
1384
  const input = document.getElementById('recipe-input');
1385
  const name = input.value.trim();
1386
  if (!name) return;
1387
- if (!ingredients_list.includes(name)) {
1388
  error('recipe-results', `"${name}" is not in the vocabulary.`);
1389
  return;
1390
  }
 
1264
  if (activeTab === 'sub') runNeighbors();
1265
  else if (activeTab === 'compass') runSlerp();
1266
  else if (activeTab === 'modes') runModes();
1267
+ else if (activeTab === 'graph') runGraph();
1268
+ else if (activeTab === 'recipe') addToRecipeBasket();
1269
  }
1270
  });
1271
 
 
1386
  const input = document.getElementById('recipe-input');
1387
  const name = input.value.trim();
1388
  if (!name) return;
1389
+ if (!vocab.includes(name)) {
1390
  error('recipe-results', `"${name}" is not in the vocabulary.`);
1391
  return;
1392
  }