mishig HF staff commited on
Commit
d30fa0a
1 Parent(s): 075289c
Files changed (1) hide show
  1. src/routes/+page.server.ts +1 -1
src/routes/+page.server.ts CHANGED
@@ -16,7 +16,7 @@ export const load: PageServerLoad = async ({ fetch }) => {
16
  compatibleModels.sort((a, b) => a.id.toLowerCase().localeCompare(b.id.toLowerCase()));
17
 
18
  const promises = compatibleModels.map(async model => {
19
- const configUrl = `https://huggingface.co/${model.modelId}/raw/main/tokenizer_config.json`;
20
  const res = await fetch(configUrl);
21
  if (!res.ok) {
22
  return null; // Ignore failed requests by returning null
 
16
  compatibleModels.sort((a, b) => a.id.toLowerCase().localeCompare(b.id.toLowerCase()));
17
 
18
  const promises = compatibleModels.map(async model => {
19
+ const configUrl = `https://huggingface.co/${model.id}/raw/main/tokenizer_config.json`;
20
  const res = await fetch(configUrl);
21
  if (!res.ok) {
22
  return null; // Ignore failed requests by returning null