Skip to content

Commit

Permalink
Ensure images with no caption download in gallery (#5735)
Browse files Browse the repository at this point in the history
* ensure images with no caption download in gallery

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
  • Loading branch information
3 people committed Sep 29, 2023
1 parent c9af4f7 commit abb5e9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/green-candles-work.md
@@ -0,0 +1,6 @@
---
"@gradio/gallery": patch
"gradio": patch
---

fix:Ensure images with no caption download in gallery
2 changes: 2 additions & 0 deletions js/gallery/static/Gallery.svelte
Expand Up @@ -117,6 +117,8 @@
return selected.data;
} else if (typeof selected === "string") {
return selected;
} else if (Array.isArray(selected)) {
return getHrefValue(selected[0]);
}
return "";
}
Expand Down

0 comments on commit abb5e9d

Please sign in to comment.