Skip to content

Commit 76827e7

Browse files
committed
fix the "show_download_button" option
1 parent d9836b3 commit 76827e7

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

frontend/Index.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
bind:value
4848
{label}
4949
{show_label}
50+
{show_download_button}
5051
{loading_status}
5152
{height}
5253
{width}

frontend/shared/InteractiveImage.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
2222
export let label: string;
2323
export let show_label: boolean;
24+
export let show_download_button = true;
2425
2526
export let height: number | undefined;
2627
export let width: number | undefined;
@@ -96,6 +97,7 @@
9697
{label}
9798
{show_label}
9899
{upload_count}
100+
{show_download_button}
99101
>
100102
<UploadText i18n={gradio.i18n} type="image" />
101103
</Image>

frontend/shared/StaticImage.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
{layer_images}
9898
show_single={is_half}
9999
{slider_color}
100+
{show_download_button}
100101
/>
101102
</Block>
102103

0 commit comments

Comments
 (0)