Upload folder using huggingface_hub
Browse files
6.3.1/dialogue/Dialogue.svelte
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
|
| 15 |
const gradio: Gradio<DialogueEvents, DialogueProps> = props.gradio;
|
| 16 |
|
| 17 |
-
let checked = $
|
| 18 |
let disabled = $derived(!gradio.shared.interactive);
|
| 19 |
|
| 20 |
let dialogue_lines: DialogueLine[] = $state([]);
|
|
@@ -279,8 +279,9 @@
|
|
| 279 |
}
|
| 280 |
}
|
| 281 |
|
| 282 |
-
async function insert_tag(
|
| 283 |
-
|
|
|
|
| 284 |
if (tag) {
|
| 285 |
let text;
|
| 286 |
let currentInput;
|
|
@@ -405,7 +406,7 @@
|
|
| 405 |
|
| 406 |
<svelte:window on:click={handle_click_outside} />
|
| 407 |
|
| 408 |
-
<
|
| 409 |
{#if gradio.shared.show_label && (buttons.some((btn) => typeof btn === "string" && btn === "copy") || buttons.some((btn) => typeof btn !== "string"))}
|
| 410 |
<IconButtonWrapper {buttons} {on_custom_button_click}>
|
| 411 |
{#if buttons.some((btn) => typeof btn === "string" && btn === "copy")}
|
|
@@ -551,7 +552,7 @@
|
|
| 551 |
gradio.props.tags.indexOf(s)
|
| 552 |
)[selectedOptionIndex]}
|
| 553 |
show_options={true}
|
| 554 |
-
|
| 555 |
{offset_from_top}
|
| 556 |
from_top={true}
|
| 557 |
/>
|
|
@@ -661,10 +662,10 @@
|
|
| 661 |
</button>
|
| 662 |
</div>
|
| 663 |
{/if}
|
| 664 |
-
</
|
| 665 |
|
| 666 |
<style>
|
| 667 |
-
|
| 668 |
display: block;
|
| 669 |
width: 100%;
|
| 670 |
}
|
|
|
|
| 14 |
|
| 15 |
const gradio: Gradio<DialogueEvents, DialogueProps> = props.gradio;
|
| 16 |
|
| 17 |
+
let checked = $state(false);
|
| 18 |
let disabled = $derived(!gradio.shared.interactive);
|
| 19 |
|
| 20 |
let dialogue_lines: DialogueLine[] = $state([]);
|
|
|
|
| 279 |
}
|
| 280 |
}
|
| 281 |
|
| 282 |
+
async function insert_tag(index: any): Promise<void> {
|
| 283 |
+
index = parseInt(index);
|
| 284 |
+
const tag = gradio.props.tags[index];
|
| 285 |
if (tag) {
|
| 286 |
let text;
|
| 287 |
let currentInput;
|
|
|
|
| 406 |
|
| 407 |
<svelte:window on:click={handle_click_outside} />
|
| 408 |
|
| 409 |
+
<div class:container={gradio.shared.container}>
|
| 410 |
{#if gradio.shared.show_label && (buttons.some((btn) => typeof btn === "string" && btn === "copy") || buttons.some((btn) => typeof btn !== "string"))}
|
| 411 |
<IconButtonWrapper {buttons} {on_custom_button_click}>
|
| 412 |
{#if buttons.some((btn) => typeof btn === "string" && btn === "copy")}
|
|
|
|
| 552 |
gradio.props.tags.indexOf(s)
|
| 553 |
)[selectedOptionIndex]}
|
| 554 |
show_options={true}
|
| 555 |
+
onchange={(e) => insert_tag(e)}
|
| 556 |
{offset_from_top}
|
| 557 |
from_top={true}
|
| 558 |
/>
|
|
|
|
| 662 |
</button>
|
| 663 |
</div>
|
| 664 |
{/if}
|
| 665 |
+
</div>
|
| 666 |
|
| 667 |
<style>
|
| 668 |
+
div.container {
|
| 669 |
display: block;
|
| 670 |
width: 100%;
|
| 671 |
}
|
6.3.1/dialogue/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "@gradio/dialogue",
|
| 3 |
-
"version": "0.3.
|
| 4 |
"description": "Gradio dialogue component",
|
| 5 |
"type": "module",
|
| 6 |
"author": "Gradio",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "@gradio/dialogue",
|
| 3 |
+
"version": "0.3.1",
|
| 4 |
"description": "Gradio dialogue component",
|
| 5 |
"type": "module",
|
| 6 |
"author": "Gradio",
|