Download 6.23.0/dataframe/shared/Example.svelte from gradio/frontend: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/datasets/gradio/frontend/resolve/main/6.23.0/dataframe/shared/Example.svelte
- Command line
-
hf download hf://datasets/gradio/frontend/6.23.0/dataframe/shared/Example.svelte
-
curl -L -o Example.svelte https://huggingface.co/datasets/gradio/frontend/resolve/main/6.23.0/dataframe/shared/Example.svelte
535 Bytes
| <script lang="ts"> | |
| let { value }: { value: (string | number)[][] } = $props(); | |
| </script> | |
| <table class="input-dataframe-example"> | |
| {#each value.slice(0, 3) as row} | |
| <tr> | |
| {#each row.slice(0, 3) as cell} | |
| <td class="p-2">{cell}</td> | |
| {/each} | |
| {#if row.length > 3} | |
| <td class="p-2">...</td> | |
| {/if} | |
| </tr> | |
| {/each} | |
| {#if value.length > 3} | |
| <tr> | |
| {#each Array(Math.min(4, value[0].length)) as _} | |
| <td class="p-2">...</td> | |
| {/each} | |
| </tr> | |
| {/if} | |
| </table> | |
| <style> | |
| table { | |
| border-collapse: separate; | |
| } | |
| </style> | |