Upload folder using huggingface_hub
Browse files- 6.23.0/box/Index.svelte +14 -4
6.23.0/box/Index.svelte
CHANGED
|
@@ -1,10 +1,20 @@
|
|
| 1 |
<script lang="ts">
|
|
|
|
| 2 |
import { Block } from "@gradio/atoms";
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
</script>
|
| 7 |
|
| 8 |
<Block {elem_id} {elem_classes} {visible} explicit_call>
|
| 9 |
-
|
| 10 |
</Block>
|
|
|
|
| 1 |
<script lang="ts">
|
| 2 |
+
import type { Snippet } from "svelte";
|
| 3 |
import { Block } from "@gradio/atoms";
|
| 4 |
+
|
| 5 |
+
let {
|
| 6 |
+
elem_id,
|
| 7 |
+
elem_classes,
|
| 8 |
+
visible = true,
|
| 9 |
+
children
|
| 10 |
+
}: {
|
| 11 |
+
elem_id: string;
|
| 12 |
+
elem_classes: string[];
|
| 13 |
+
visible?: boolean | "hidden";
|
| 14 |
+
children?: Snippet;
|
| 15 |
+
} = $props();
|
| 16 |
</script>
|
| 17 |
|
| 18 |
<Block {elem_id} {elem_classes} {visible} explicit_call>
|
| 19 |
+
{@render children?.()}
|
| 20 |
</Block>
|