Upload folder using huggingface_hub
Browse files
6.23.0/number/Example.svelte
CHANGED
|
@@ -1,7 +1,13 @@
|
|
| 1 |
<script lang="ts">
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
</script>
|
| 6 |
|
| 7 |
<div
|
|
|
|
| 1 |
<script lang="ts">
|
| 2 |
+
let {
|
| 3 |
+
value,
|
| 4 |
+
type,
|
| 5 |
+
selected = false
|
| 6 |
+
}: {
|
| 7 |
+
value: string | null;
|
| 8 |
+
type: "gallery" | "table";
|
| 9 |
+
selected?: boolean;
|
| 10 |
+
} = $props();
|
| 11 |
</script>
|
| 12 |
|
| 13 |
<div
|
6.23.0/number/Index.svelte
CHANGED
|
@@ -75,10 +75,10 @@
|
|
| 75 |
max={gradio.props.maximum}
|
| 76 |
step={gradio.props.step}
|
| 77 |
placeholder={gradio.props.placeholder}
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
{disabled}
|
| 83 |
/>
|
| 84 |
</label>
|
|
|
|
| 75 |
max={gradio.props.maximum}
|
| 76 |
step={gradio.props.step}
|
| 77 |
placeholder={gradio.props.placeholder}
|
| 78 |
+
onkeypress={handle_keypress}
|
| 79 |
+
oninput={() => gradio.dispatch("input")}
|
| 80 |
+
onblur={() => gradio.dispatch("blur")}
|
| 81 |
+
onfocus={() => gradio.dispatch("focus")}
|
| 82 |
{disabled}
|
| 83 |
/>
|
| 84 |
</label>
|