Spaces:
Runtime error
Runtime error
Download src/lib/stores/mounted.ts from FallnAI/LLM-Inference: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/main/src/lib/stores/mounted.ts
- Command line
-
hf download hf://spaces/FallnAI/LLM-Inference/src/lib/stores/mounted.ts
-
curl -L -o mounted.ts https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/main/src/lib/stores/mounted.ts
209 Bytes
| import { onMount } from "svelte"; | |
| import { readonly, writable } from "svelte/store"; | |
| export function isMounted() { | |
| const store = writable(false); | |
| onMount(() => store.set(true)); | |
| return readonly(store); | |
| } | |