agents-js-oasst / src /lib /agents /getInference.ts
nsarrazin's picture
refactoring & better look
39b5447
raw
history blame
220 Bytes
import { HfInference } from "@huggingface/inference";
import { get } from "svelte/store";
import { HF_ACCESS_TOKEN } from "$lib/store";
export function getInference() {
return new HfInference(get(HF_ACCESS_TOKEN));
}