{#if !interactive} gradio.dispatch("select", detail)} on:share={({ detail }) => gradio.dispatch("share", detail)} on:error={({ detail }) => gradio.dispatch("error", detail)} value={_image} {label} {show_label} {show_download_button} selectable={_selectable} {show_share_button} i18n={gradio.i18n} /> {:else} (value.points = detail)} on:edit={() => gradio.dispatch("edit")} on:clear={() => { value = null; gradio.dispatch("clear"); gradio.dispatch("change"); }} on:stream={() => gradio.dispatch("stream")} on:drag={({ detail }) => (dragging = detail)} on:upload={({ detail }) => { if (value == null) { value = { image: detail, points: null }; } else { value.image = detail; } gradio.dispatch("upload"); }} on:select={({ detail }) => gradio.dispatch("select", detail)} on:share={({ detail }) => gradio.dispatch("share", detail)} on:error={({ detail }) => { loading_status = loading_status; loading_status.status = "error"; gradio.dispatch("error", detail); }} on:click={() => gradio.dispatch("error", "bad thing happened")} on:error {label} {show_label} {streaming} i18n={gradio.i18n} > {#if sources.includes("upload")} {:else} {/if} {/if}