diff --git a/docs/components/WaterfallGallery/demos/basic.py b/docs/components/WaterfallGallery/demos/basic.py
index b10b6d3b..7f1c2760 100644
--- a/docs/components/WaterfallGallery/demos/basic.py
+++ b/docs/components/WaterfallGallery/demos/basic.py
@@ -13,9 +13,9 @@ def resolve_assets(relative_path):
with gr.Blocks() as demo:
mgr.WaterfallGallery(
value=[
- resolve_assets('bot.jpeg'),
+ resolve_assets('modelscope.svg'),
# pass a tuple
- [resolve_assets('bot2.jpeg'), 'bot2'],
+ [resolve_assets('bot.jpeg'), 'bot'],
# pass a dict
{
"image": resolve_assets('user.jpeg'),
diff --git a/docs/components/WaterfallGallery/demos/like_click_feedback.py b/docs/components/WaterfallGallery/demos/like_click_feedback.py
index 219e9937..10e2c37d 100644
--- a/docs/components/WaterfallGallery/demos/like_click_feedback.py
+++ b/docs/components/WaterfallGallery/demos/like_click_feedback.py
@@ -17,9 +17,9 @@ def fn(data: gr.EventData):
with gr.Blocks() as demo:
gallery = mgr.WaterfallGallery(
value=[
- resolve_assets('bot.jpeg'),
+ resolve_assets('modelscope.svg'),
# pass a tuple
- [resolve_assets('bot2.jpeg'), 'bot2'],
+ [resolve_assets('bot.jpeg'), 'bot'],
# pass a dict
{
"image": resolve_assets('user.jpeg'),
diff --git a/docs/components/WaterfallGallery/demos/load_more.py b/docs/components/WaterfallGallery/demos/load_more.py
index 80f72392..a6a23e78 100644
--- a/docs/components/WaterfallGallery/demos/load_more.py
+++ b/docs/components/WaterfallGallery/demos/load_more.py
@@ -13,8 +13,8 @@ def resolve_assets(relative_path):
def load_more(_gallery):
time.sleep(1)
+ _gallery.append(resolve_assets('modelscope.svg'))
_gallery.append(resolve_assets('bot.jpeg'))
- _gallery.append(resolve_assets('bot2.jpeg'))
_gallery.append(resolve_assets('user.jpeg'))
_gallery.append(resolve_assets('screen.jpeg'))
has_more = True
@@ -26,9 +26,9 @@ def load_more(_gallery):
with gr.Blocks() as demo:
gallery = mgr.WaterfallGallery(
value=[
- resolve_assets('bot.jpeg'),
+ resolve_assets('modelscope.svg'),
# pass a tuple
- [resolve_assets('bot2.jpeg'), 'bot2'],
+ [resolve_assets('bot.jpeg'), 'bot'],
# pass a dict
{
"image": resolve_assets('user.jpeg'),
diff --git a/docs/components/WaterfallGallery/demos/responsive_columns.py b/docs/components/WaterfallGallery/demos/responsive_columns.py
index b75e3c6c..f6bded30 100644
--- a/docs/components/WaterfallGallery/demos/responsive_columns.py
+++ b/docs/components/WaterfallGallery/demos/responsive_columns.py
@@ -17,9 +17,9 @@ def fn():
with gr.Blocks() as demo:
gallery = mgr.WaterfallGallery(
value=[
- resolve_assets('bot.jpeg'),
+ resolve_assets('modelscope.svg'),
# pass a tuple
- [resolve_assets('bot2.jpeg'), 'bot2'],
+ [resolve_assets('bot.jpeg'), 'bot'],
# pass a dict
{
"image": resolve_assets('user.jpeg'),
diff --git a/docs/components/resources/bot2.jpeg b/docs/components/resources/bot2.jpeg
deleted file mode 100644
index 81c91813..00000000
Binary files a/docs/components/resources/bot2.jpeg and /dev/null differ
diff --git a/docs/components/resources/modelscope.svg b/docs/components/resources/modelscope.svg
new file mode 100644
index 00000000..093ba6fe
--- /dev/null
+++ b/docs/components/resources/modelscope.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/WaterfallGallery/index.svelte b/frontend/WaterfallGallery/index.svelte
index 82b9bd99..4942a7a1 100644
--- a/frontend/WaterfallGallery/index.svelte
+++ b/frontend/WaterfallGallery/index.svelte
@@ -37,6 +37,8 @@
export let object_fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' =
'cover';
export let show_download_button = false;
+ export let root: string;
+ export let proxy_url: string;
export let gradio: Gradio<{
change: typeof value;
select: SelectData;
@@ -102,6 +104,8 @@
{label}
{action_label}
{value}
+ {root}
+ {proxy_url}
{show_label}
{object_fit}
load_more_button_props={_load_more_button_props}
diff --git a/frontend/WaterfallGallery/shared/Gallery.svelte b/frontend/WaterfallGallery/shared/Gallery.svelte
index a3b8051a..3dfd27b0 100644
--- a/frontend/WaterfallGallery/shared/Gallery.svelte
+++ b/frontend/WaterfallGallery/shared/Gallery.svelte
@@ -1,6 +1,7 @@