Spaces:
Sleeping
Sleeping
wip
Browse files
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.
|
| 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
|