Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the download button of the
gr.Gallery()
component to work (#6487)
* Fix the download button of the `gr.Gallery()` component to work * Refactoring js/gallery/shared/Gallery.svelte * Fix `gr.Gallery()` to set `orig_name` for URLs * Fix Gallery.postprocess() * Fix `download()` to fallback to `window.open()` when CORS is not allowed * Fix `gr.Gallery` to leave as None so it will be replaced with a local cache path and restore the `<a>` tag-based download feature on the frontend * Align a variable name to its type name * Fix Gallery's tests * Fix the frontend test for gallery * Revert "Fix `gr.Gallery` to leave as None so it will be replaced with a local cache path and restore the `<a>` tag-based download feature on the frontend" This reverts commit d754980. * Revert "Fix Gallery's tests" This reverts commit 4e2aa3f. * Revert "Fix the frontend test for gallery" This reverts commit 007caa2. * Fix for linter * Add a test about the download button * Fix type defs on Gallery.postprocess * Improve TestGallery * add changeset * Update gradio/components/gallery.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Update gradio/components/gallery.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Revert "Update gradio/components/gallery.py" This reverts commit 4d6e127. * Revert "Update gradio/components/gallery.py" This reverts commit f2bfad0. * Use `tuple` instead of `typing.Tuple` * Revert "Use `tuple` instead of `typing.Tuple`" This reverts commit 69ab93c. --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
- Loading branch information
1 parent
5177132
commit 9a5811d
Showing
5 changed files
with
166 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@gradio/gallery": patch | ||
"gradio": patch | ||
--- | ||
|
||
fix:Fix the download button of the `gr.Gallery()` component to work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.