gradio.dispatch("clear_status", gradio.shared.loading_status)}
/>
{#if !gradio.shared.interactive}
gradio.dispatch("select", detail)}
on_download={({ detail }) => gradio.dispatch("download", detail)}
selectable={gradio.props._selectable}
value={gradio.props.value}
label={gradio.shared.label}
show_label={gradio.shared.show_label}
height={gradio.props.height}
i18n={gradio.i18n}
/>
{:else}
gradio.shared.client.upload(...args)}
stream_handler={(...args) => gradio.shared.client.stream(...args)}
label={gradio.shared.label}
show_label={gradio.shared.show_label}
value={gradio.props.value}
file_count={gradio.props.file_count}
file_types={gradio.props.file_types}
selectable={gradio.props._selectable}
height={gradio.props.height}
root={gradio.shared.root}
allow_reordering={gradio.props.allow_reordering}
max_file_size={gradio.shared.max_file_size}
on:change={({ detail }) => {
gradio.props.value = detail;
}}
on:drag={({ detail }) => (dragging = detail)}
on:clear={() => gradio.dispatch("clear")}
on:select={({ detail }) => gradio.dispatch("select", detail)}
on:upload={() => gradio.dispatch("upload")}
on:error={({ detail }) => {
gradio.shared.loading_status = gradio.shared.loading_status || {};
gradio.shared.loading_status.status = "error";
gradio.dispatch("error", detail);
}}
on:delete={({ detail }) => {
gradio.dispatch("delete", detail);
}}
i18n={gradio.i18n}
>
{/if}