gradio.dispatch("clear_status", gradio.shared.loading_status)} /> {#if gradio.shared.interactive && no_value} gradio.shared.client.upload(...args)} stream_handler={(...args) => gradio.shared.client.stream(...args)} on:upload={async (e) => { const files = Array.isArray(e.detail) ? e.detail : [e.detail]; gradio.props.value = await process_upload_files(files); gradio.dispatch("upload", gradio.props.value); gradio.dispatch("change", gradio.props.value); }} on:error={({ detail }) => { gradio.shared.loading_status = gradio.shared.loading_status || {}; gradio.shared.loading_status.status = "error"; gradio.dispatch("error", detail); }} > {:else} gradio.dispatch("change")} on:clear={() => gradio.dispatch("change")} on:select={(e) => gradio.dispatch("select", e.detail)} on:share={(e) => gradio.dispatch("share", e.detail)} on:error={(e) => gradio.dispatch("error", e.detail)} on:preview_open={() => gradio.dispatch("preview_open")} on:preview_close={() => gradio.dispatch("preview_close")} on:fullscreen={({ detail }) => { fullscreen = detail; }} on:delete={handle_delete} on:upload={async (e) => { const files = Array.isArray(e.detail) ? e.detail : [e.detail]; const new_value = await process_upload_files(files); gradio.props.value = gradio.props.value ? [...gradio.props.value, ...new_value] : new_value; gradio.dispatch("upload", new_value); gradio.dispatch("change", gradio.props.value); }} label={gradio.shared.label} show_label={gradio.shared.show_label} columns={gradio.props.columns} rows={gradio.props.rows} height={gradio.props.height} preview={gradio.props.preview} object_fit={gradio.props.object_fit} interactive={gradio.shared.interactive} allow_preview={gradio.props.allow_preview} bind:selected_index={gradio.props.selected_index} bind:value={gradio.props.value} show_share_button={gradio.props.buttons.includes("share")} show_download_button={gradio.props.buttons.includes("download")} fit_columns={gradio.props.fit_columns} i18n={gradio.i18n} _fetch={(...args) => gradio.shared.client.fetch(...args)} show_fullscreen_button={gradio.props.buttons.includes("fullscreen")} {fullscreen} root={gradio.shared.root} file_types={gradio.props.file_types} max_file_size={gradio.shared.max_file_size} upload={(...args) => gradio.shared.client.upload(...args)} stream_handler={(...args) => gradio.shared.client.stream(...args)} /> {/if}