7417 Commits

Author SHA1 Message Date
Gradio PR Bot
f611983323
chore: update versions (#10479)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.9.6 @gradio/audio@0.17.0 @gradio/button@0.4.5 @gradio/chatbot@0.22.4 @gradio/client@1.11.0 @gradio/code@0.10.16 @gradio/core@0.9.0 @gradio/dataframe@0.15.0 @gradio/dataset@0.4.5 @gradio/downloadbutton@0.3.5 @gradio/file@0.12.5 @gradio/fileexplorer@0.5.16 @gradio/gallery@0.15.5 @gradio/image@0.21.0 @gradio/imageeditor@0.12.7 @gradio/lite@5.15.0 @gradio/model3d@0.14.0 @gradio/multimodaltextbox@0.9.6 @gradio/paramviewer@0.7.0 @gradio/sidebar@0.1.1 @gradio/simpleimage@0.8.16 @gradio/upload@0.15.0 @gradio/uploadbutton@0.8.5 @gradio/video@0.14.0 @self/app@1.47.0 @self/component-test@0.5.6 @self/spa@0.6.0 @self/storybook@0.8.1 gradio@5.15.0 website@0.48.0
2025-02-04 21:24:38 -08:00
aliabid94
2e8dc74f75
Allow building multipage Gradio apps (#10433)
* changes

* add changeset

* changes

* chnages

* changes

* changes

* add changeset

* Update gradio/blocks.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/blocks.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* changes

* chagnes

* Update js/core/src/Blocks.svelte

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* Update js/core/src/Blocks.svelte

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* changes

* chagnes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* docs

* changes

* changes

* changes

* rename guide

* rename guide

* changes

* chagnes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* try skipping

* format

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2025-02-04 19:09:00 -08:00
Abubakar Abid
35fda36de9
Add an anchor_links parameter to gr.ParamViewer that allows linking to specific parameters. (#10495)
* changes

* revert

* add changeset

* changes

* add changeset

* fix conflicts with random hash

* pass a string to anchor_links

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-02-04 17:14:54 -08:00
Hannah
afb96c6445
Improve dataframe's upload accessibility (#10478)
* add aria-labels to dataframe upload

* add changeset

* tweaks

* add changeset

* add aria-labels for other components

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2025-02-04 22:38:29 +00:00
Abubakar Abid
a9bfbc389d
Add support for inference providers in gr.load() (#10496)
* changes

* add changeset

* format

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-04 09:52:11 -08:00
Hannah
10932a291a
Ensure dataframe is not editable when interactive is False (#10494)
* fix editing logic

* add story

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-04 00:12:25 +00:00
Hannah
ed7a0919ab
Expand and collapse dataframe cells (#10463)
* - truncate long cell values
- add expand and collapse logic

* add changeset

* tweak

* add max_chars and single click expanding

* - fix test
- add story

* Update gradio/components/dataframe.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-03 22:37:34 +00:00
Hannah
ff5f976bbb
Allow multiline headers in gr.Dataframe (#10491)
* allow multiline headers

* add story

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-03 21:46:26 +00:00
Hannah
8e40c15669
Implement multiple cell selection (#10456)
* add group cell selection logic

* hide cell menu button when selected cells > 1

* add delete values logic

* add changeset

* maintain tab navigation

* tweak

* add interaction story

* fix test

* * copy selected cells
* delete and backspace for deletion

* move funcs to utils file

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-03 21:42:41 +00:00
aliabid94
39f0c23303
Allow image uploads to gr.load_chat (#10345)
* changes

* add changeset

* changes

* changes

* chagens

* changes

* changes

* chagnges

* changes

* changes

* Update gradio/external.py

* changes

* simplify tests

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-03 20:01:11 +00:00
Dawood Khan
3750082b26
Sidebar Fixes (#10483)
* fixes

* docstring

* add changeset

* changes

* comment

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-03 13:41:29 -05:00
Ikko Eltociear Ashimine
6401d32e79
chore: update dropdown.py (#10485)
* chore: update dropdown.py

correspoding -> corresponding

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-02 23:55:22 -08:00
Ali Abdalla
90f90b7989
Add sidebar to the docs (#10480)
* fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-01 00:58:26 -08:00
Abubakar Abid
017ed46272
Clean up gr.DataFrame.postprocess() and fix issue with getting headers of empty dataframes (#10476)
* changes

* changes

* add changeset

* changes

* format

* changes

* add changeset

* notebook

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-31 13:11:49 -08:00
Freddy Boulton
2cf449abb3
Add more ImageEditor js tests (#10446)
* code

* Try

* add storybook story

* add changeset

* empty

* use local file

* add changeset

* fix

* Revert "fix"

This reverts commit 42750f3d311da138690cc42014e3dc7afa1d2c53.

* fix

* add code

* add code

* code

* Fix

* Fix

* code

* fix

* delete cheetah

* code

* code

* empty

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-31 13:04:55 -05:00
Gradio PR Bot
b7b96e61fb
chore: update versions (#10464)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/model3d@0.13.15 @gradio/multimodaltextbox@0.9.5 @gradio/sidebar@0.1.0 @gradio/simpleimage@0.8.15 @gradio/upload@0.14.8 @gradio/uploadbutton@0.8.4 @gradio/video@0.13.4 @gradio/wasm@0.17.2 @gradio/annotatedimage@0.9.5 @gradio/audio@0.16.0 @gradio/button@0.4.4 @gradio/chatbot@0.22.3 @gradio/code@0.10.15 @gradio/core@0.8.0 @gradio/dataframe@0.14.0 @gradio/dataset@0.4.4 @gradio/downloadbutton@0.3.4 @gradio/file@0.12.4 @gradio/fileexplorer@0.5.15 @gradio/gallery@0.15.4 @gradio/image@0.20.4 @gradio/imageeditor@0.12.6 @gradio/lite@5.14.0 @self/app@1.46.3 @self/component-test@0.5.5 gradio@5.14.0 gradio_client@1.7.0 website@0.47.3
2025-01-30 14:28:08 -08:00
Abubakar Abid
3465fdb190
Format backend with latest ruff (#10470)
* format

* add changeset

* more ruff

* changes

* update

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-30 14:13:16 -08:00
Dawood Khan
ef66fe52b2
Sidebar Component (#10435)
* sidebar

* more sidebar

* add changeset

* Update gradio/layouts/sidebar.py

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>

* changes

* format

* format backend

* responsive

* format

* layout fix

* format

* fixes

* demo

* layout and shadow

* test

* test fix

* format

* changes

* revert

* snake case

* revert

* add warning for multiple sidebar

* changes

* fix stories

* fix height

* test fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-30 13:49:27 -08:00
Abubakar Abid
62d06694dd
Request mic permissions only after the Record button is clicked in gr.Audio() (#10469)
* changes

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-30 12:51:31 -08:00
Hannah
ca7c47e5e5
Add copy button to dataframe toolbar (#10461)
* add copy button to df toolbar

* add changeset

* add story

* add show_copy_button param

* copy data with separators and headers

* fix test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-30 17:12:34 +00:00
Yuichiro Tachibana (Tsuchiya)
fa220a31a5
Patch plotly requirement to force to install v5 along with altair (#10459)
* Patch plotly requirement to force to install v5

* add changeset

* Fix the requirement patcher to be more specific

* Refactoring

* Format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-30 16:20:20 +09:00
Abubakar Abid
a69b8e83ad
Support column/row deletion in gr.DataFrame (#10420)
* support deletion

* changes

* changes

* add changeset

* update icons

* add changeset

* notebook

* changes

* simplify

* fix icons

* changes

* changes

* change

* revert

* flaky test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-29 12:10:15 -08:00
Freddy Boulton
324383fb81
Fix typecheck error due to huggingface_hub update (#10460)
* fix typecheck

* add changeset

* fix test

* fix

* fix

* fix

* matplotlib

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-29 11:29:36 -08:00
Gradio PR Bot
7cc5aa195b
chore: update versions (#10444)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.9.4 @gradio/audio@0.15.4 @gradio/button@0.4.3 @gradio/chatbot@0.22.2 @gradio/code@0.10.14 @gradio/dataframe@0.13.1 @gradio/dataset@0.4.3 @gradio/downloadbutton@0.3.3 @gradio/file@0.12.3 @gradio/fileexplorer@0.5.14 @gradio/gallery@0.15.3 @gradio/image@0.20.3 @gradio/imageeditor@0.12.5 @gradio/lite@5.13.1 @gradio/model3d@0.13.14 @gradio/multimodaltextbox@0.9.4 @gradio/simpleimage@0.8.14 @gradio/upload@0.14.7 @gradio/uploadbutton@0.8.3 @gradio/video@0.13.3 @gradio/wasm@0.17.1 @self/app@1.46.2 @self/component-test@0.5.4 gradio@5.13.2 website@0.47.2
2025-01-28 16:37:47 -08:00
Abubakar Abid
337b5224a6
Small tweaks to gr.ChatMessage and spacing between chatbot messages (#10448)
* change

* changes

* add changeset

* changes

* move to top

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-28 15:53:15 -08:00
Yuvraj Sharma
d291dca964
added guide for Anthropics Citations API (#10439)
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2025-01-28 15:40:42 -08:00
Abubakar Abid
9dea9b71f1
changelog (#10455) 2025-01-28 15:37:28 -08:00
Hannah
dd178f3dd5
Tiny tweak to example dataframes (#10452)
* add collapsed borders

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-28 23:31:34 +00:00
Yuichiro Tachibana (Tsuchiya)
2167f58fb8
Update Pyodide to 0.27.2 (#10426)
* Update Pyodide to 0.27.2

* add changeset

* Update pyodide dev dep

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-29 00:14:42 +09:00
Ali Abdalla
f40747c9fd
Fix error with website build in chatbot.svx (#10443)
* fix syntax

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-27 13:30:45 -08:00
ddayto
7174340c00
fix: deprecated arguments in stable diffusion demo (#10434)
* Refactor requirements and improve Hugging Face token handling

- Updated `requirements.txt` to include specific package versions, ensuring better dependency management and compatibility.
- Enhanced `run.py` to check for the Hugging Face access token (`HUGGING_FACE_ACCESS_TOKEN`) at runtime, providing a clear error message if it's missing.
- Replaced deprecated arguments (`use_auth_token`, `revision="fp16"`) with updated ones (`token`, `variant="fp16"`) in the StableDiffusionPipeline setup.
- Added minor formatting improvements to improve readability and maintainability in the `run.py` script.

These changes enhance user clarity, ensure compatibility with updated libraries, and improve the code's overall quality.

* chore: pin versions for diffusers and torch in requirements.txt

* refactor: use standard HF_TOKEN for authentication in run.py

* notebook

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-24 16:51:04 -08:00
Gradio PR Bot
3608446630
chore: update versions (#10417)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/audio@0.15.3 @gradio/chatbot@0.22.1 @gradio/imageeditor@0.12.4 @gradio/multimodaltextbox@0.9.3 gradio@5.13.1 website@0.47.1
2025-01-23 19:38:46 -08:00
Logan Arkema
90e0b47be3
Update all md5 hashes to sha256 (#10421)
* Update all md5 hashes to sha256

* add changeset

* format

---------

Co-authored-by: Logan Arkema <ArkemaLJ@gao.gov>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-24 03:31:32 +00:00
Abubakar Abid
92dda15f6d
Hide the waveform when playing recorded audio if show_recording_waveform is False (#10405)
* changes

* add changeset

* revert

* changes

* format

* story

* test

* changes

* add changeset

* changes

* changees

* changes

* changes

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 19:13:36 -08:00
Abubakar Abid
516d98b74b
changeset (#10424) 2025-01-23 18:06:01 -08:00
Freddy Boulton
71c8b8abbf
Clear Image Editor Value with None (#10370)
* Code

* Fix

* Add test

* Fix

* Format

* add changeset

* rm for now

* Revert "rm for now"

This reverts commit 3cfbe3c577e365d9d14553e9a109bbe09f8170ac.

* rm for now

* tests

* fix tests

* Add tests

* lint

* Add code

* Fix

* trigger

* Add code

* test

* format

* add changeset

* Fix merge

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 17:26:42 -08:00
Freddy Boulton
3c2e12b5ba
Fix ImageEditor Cropping - Cropping now crops the background image instead of the image + canvas (#10416)
* fix crop

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 17:26:20 -08:00
David H.
efd358a54a
Update chatbot.svx for issue#10413 (#10419)
* Update chatbot.svx for issue#10413

Fix multiple example code syntax errors in line 115-137
Update the example code to ensure compatibility with latest Gradio API

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 14:01:18 -08:00
Abubakar Abid
b7a7e59094
Support presigned URLs with gr.Video, gr.Model3D, and other components (#10406)
* thanks cursor

* add changeset

* add changeset

* add changeset

* changes

* changes

* video

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-23 08:35:53 -08:00
Gradio PR Bot
7377055815
chore: update versions (#10349)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.9.3 @gradio/audio@0.15.2 @gradio/button@0.4.2 @gradio/chatbot@0.22.0 @gradio/checkbox@0.4.12 @gradio/checkboxgroup@0.6.12 @gradio/code@0.10.13 @gradio/colorpicker@0.4.12 @gradio/core@0.7.0 @gradio/dataframe@0.13.0 @gradio/dataset@0.4.2 @gradio/datetime@0.3.4 @gradio/downloadbutton@0.3.2 @gradio/dropdown@0.9.10 @gradio/fallback@0.4.12 @gradio/file@0.12.2 @gradio/fileexplorer@0.5.13 @gradio/gallery@0.15.2 @gradio/highlightedtext@0.8.12 @gradio/html@0.6.3 @gradio/image@0.20.2 @gradio/imageeditor@0.12.3 @gradio/json@0.5.12 @gradio/label@0.5.4 @gradio/lite@5.13.0 @gradio/markdown@0.13.2 @gradio/model3d@0.13.13 @gradio/multimodaltextbox@0.9.2 @gradio/nativeplot@0.5.6 @gradio/number@0.5.12 @gradio/paramviewer@0.6.4 @gradio/plot@0.9.7 @gradio/radio@0.6.12 @gradio/row@0.2.1 @gradio/simpledropdown@0.3.12 @gradio/simpleimage@0.8.13 @gradio/simpletextbox@0.3.12 @gradio/slider@0.6.0 @gradio/statustracker@0.10.2 @gradio/tabitem@0.4.1 @gradio/tabs@0.4.1 @gradio/textbox@0.10.2 @gradio/upload@0.14.6 @gradio/uploadbutton@0.8.2 @gradio/video@0.13.2 @gradio/wasm@0.17.0 @self/app@1.46.1 @self/component-test@0.5.3 @self/spa@0.5.0 @self/tootils@0.7.13 gradio@5.13.0 gradio_client@1.6.0 website@0.47.0 @gradio/accordion@0.5.6
2025-01-22 14:44:41 -08:00
Abubakar Abid
48809c722b
Fix bug where dataframe value prop was not updating when an input value was changed manually (#10410)
* dataframe

* add changeset

* comment

* simple unit test

* simple unit test

* add e2e test

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 22:19:29 +00:00
Abubakar Abid
3219382eee
Fix event triggers and recent regressions related to gr.DataFrame (#10403)
* fixes

* add changeset

* fix

* add changeset

* cleanup

* notebooks

* changes

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 13:06:18 -08:00
Abubakar Abid
9dc5d157aa
Tweak behavior related to the status of gr.Chatbot thought messages (#10404)
* chatbot

* changes

* add changeset

* changes

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 12:09:46 -08:00
Freddy Boulton
43e7cce2bd
Fix ImageEditor Size Issues (#10357)
* Fix

* Add test

* Fix

* Format

* add changeset

* rm for now

* Revert "rm for now"

This reverts commit 3cfbe3c577e365d9d14553e9a109bbe09f8170ac.

* rm for now

* tests

* fix tests

* dynamic canvas

* add code

* fix

* Add code

* add code

* crop size deprecation

* fix crop_size

* add code

* typecheck

* fix story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Suzana Ilic <suzana.ilic.tokyo@gmail.com>
2025-01-22 18:35:00 +00:00
Ali Abdalla
812f2d8a3f
Playground fixes and refactoring (#10388)
* wording

* something

* changes

* some refactoring

* use error modal

* formatting

* add changeset

* fix problems with guide

* formatting

* oops

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-22 00:03:03 -08:00
Hannah
feb1e81eca
Add toolbar with fullscreen button to gr.Dataframe (#10377)
* add toolbar with full screen and copy button

* add changeset

* add params and move toolbar to new file

* remove copy button for now

* add story

* add changeset

* test

* tweak

* tweak

* story fix

* test

* tweak

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-21 15:24:16 -08:00
Eric Wu
9e6ededef1
Removes css tag that overrides Gradio theme setting (#10390)
* @media (prefers-color-scheme: dark) overrides the gradio theme setting; removing as it is redundant.

* add changeset

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-21 16:23:45 +00:00
Borg93
67cab42025
Create sv.json (#10397)
Adds Swedish language to the lang-settings
2025-01-21 15:14:50 +00:00
Abubakar Abid
4d47e4b4e2
Add a log parameter to Chatbot metadata that allows displaying str content next to the thought title (#10392)
* changes

* changes

* chatbot

* format

* add changeset

* changes

* changes

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-20 22:43:04 -08:00
Erfan Asgari
98e4bf369f
fixed 2 typos in guides (#10393) 2025-01-20 07:41:03 -08:00