Download src/lib/Counter.svelte from mgifford/testing: direct link, hf CLI and curl.
- Browser
- Download file 167 Bytes
-
https://huggingface.co/spaces/mgifford/testing/resolve/main/src/lib/Counter.svelte
- Command line
-
hf download hf://spaces/mgifford/testing/src/lib/Counter.svelte
-
curl -L -o Counter.svelte https://huggingface.co/spaces/mgifford/testing/resolve/main/src/lib/Counter.svelte
167 Bytes
| <script lang="ts"> | |
| let count: number = $state(0) | |
| const increment = () => { | |
| count += 1 | |
| } | |
| </script> | |
| <button onclick={increment}> | |
| count is {count} | |
| </button> | |