File size: 270 Bytes
5acf3a4
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import type { ModelWithTokenizer } from "$lib/types";
import type { PageLoad } from "./$types";

export const load: PageLoad = async ({ fetch }) => {
	const res = await fetch("/api/models");
	const models: ModelWithTokenizer[] = await res.json();
	return { models };
};