File size: 282 Bytes
9662103
b924465
52803ee
c7f83e1
b924465
52803ee
 
 
1
2
3
4
5
6
7
8
9
import { page } from "$app/stores";
import type { ModelWithTokenizer } from "$lib/types";
import { readable } from "svelte/store";

export const models = readable<ModelWithTokenizer[]>(undefined, set => {
	const unsub = page.subscribe($p => set($p.data.models));
	return unsub;
});