{#if interactive && no_value} { const files = Array.isArray(e.detail) ? e.detail : [e.detail]; value = files.map((x) => ({ image: x, caption: null })); gradio.dispatch("upload", value); }} > {:else} gradio.dispatch("change", value)} on:select={(e) => gradio.dispatch("select", e.detail)} on:share={(e) => gradio.dispatch("share", e.detail)} on:error={(e) => gradio.dispatch("error", e.detail)} {label} {show_label} {root} {proxy_url} {columns} {rows} {height} {preview} {object_fit} {interactive} {allow_preview} bind:selected_index bind:value {show_share_button} {show_download_button} i18n={gradio.i18n} /> {/if}