7480 Commits

Author SHA1 Message Date
Gradio PR Bot
c05a076752
chore: update versions (#10634)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/chatbot@0.23.2 @gradio/core@0.11.0 @gradio/lite@5.17.0 @gradio/sidebar@0.1.5 @gradio/sketchbox@0.6.0 @self/app@1.47.3 @self/spa@0.7.0 gradio@5.17.0
2025-02-20 14:50:40 -08:00
aliabid94
77432c7fa8
gradio sketch - UI based gradio skeleton builder (#10630)
* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-20 14:39:53 -08:00
Yuichiro Tachibana (Tsuchiya)
866780a7cb
Independent scrolling of the code editor in an embedded Lite app in the playground mode (#10575)
* Make the preview and the code editor scroll independently in an embedded Lite app in the playground mode

* Merge .wrapper to .parent-container

* Refactoring

* Refactoring

* Preview block dominates the height

* add changeset

* Keep code editor height >0 during loading

* Set .code-editor height

* Fix

* add changeset

* Set default layout as horizontal

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-20 12:14:48 -08:00
Dawood Khan
ae4ba46cfb
Change sidebar to absolute positioning and make accessible (#10616)
* fix

* add changeset

* add changeset

* push

* add changeset

* 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-20 12:14:24 -08:00
Dawood Khan
75c9748f50
Fix: Chatbot sharing payload too large (#10637)
* share fix

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-20 12:13:58 -08:00
Yuichiro Tachibana (Tsuchiya)
bd4895a95a
Update Lite to support multi-page apps (#10569)
* Update Lite to manage the MPA routes in the URL hash

* add changeset

* Fix Lite to manage the MPA path via context

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-19 15:42:05 -08:00
aliabid94
b505df0b88
Fix fill_width (#10622)
* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-19 12:58:21 -08:00
Gradio PR Bot
de3c79c6b3
chore: update versions (#10626)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/checkboxgroup@0.6.14 @gradio/code@0.10.18 @gradio/colorpicker@0.4.14 @gradio/dataframe@0.16.2 @gradio/dataset@0.4.7 @gradio/datetime@0.3.6 @gradio/downloadbutton@0.3.7 @gradio/dropdown@0.9.12 @gradio/fallback@0.4.14 @gradio/file@0.12.7 @gradio/fileexplorer@0.5.18 @gradio/form@0.2.12 @gradio/gallery@0.15.7 @gradio/highlightedtext@0.8.14 @gradio/html@0.6.5 @gradio/image@0.21.2 @gradio/imageeditor@0.12.9 @gradio/json@0.5.14 @gradio/label@0.5.6 @gradio/lite@5.16.2 @gradio/markdown@0.13.4 @gradio/model3d@0.14.2 @gradio/multimodaltextbox@0.9.8 @gradio/nativeplot@0.5.8 @gradio/number@0.5.14 @gradio/paramviewer@0.7.2 @gradio/plot@0.9.9 @gradio/radio@0.6.14 @gradio/sidebar@0.1.4 @gradio/simpledropdown@0.3.14 @gradio/simpleimage@0.8.18 @gradio/simpletextbox@0.3.14 @gradio/slider@0.6.2 @gradio/statustracker@0.10.4 @gradio/textbox@0.10.4 @gradio/upload@0.15.2 @gradio/uploadbutton@0.8.7 @gradio/video@0.14.2 @self/component-test@0.5.8 @self/tootils@0.7.15 @gradio/accordion@0.5.8 @gradio/annotatedimage@0.9.8 @gradio/atoms@0.13.3 @gradio/audio@0.17.2 @gradio/box@0.2.12 @gradio/button@0.4.7 @gradio/chatbot@0.23.1 @gradio/checkbox@0.4.14 gradio@5.16.2 gradio_client@1.7.1 website@0.50.1
2025-02-19 11:47:33 -08:00
Abubakar Abid
8c87eb8306
Fix issue where styling changes were overridden when value was updated simultaneously (#10597)
* changes

* changes

* demo

* add changeset

* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-19 11:01:40 -08:00
Abubakar Abid
9475ae6585 cset 2025-02-19 01:25:23 -08:00
Abubakar Abid
4e70d74068
Fix gr.load() for gr.ChatInterface(save_history=True) and any Gradio app where the upstream app includes a gr.State as input (#10580)
* changes

* add changeset

* add changeset

* changes

* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-18 21:45:59 -08:00
Yuichiro Tachibana (Tsuchiya)
f0e4fd0522
Fix Blocks.serve_static_file and Button.svelte to work on Lite (#10594)
* Replace async_move_files_to_cache in Block.serve_static_file with move_files_to_cache because 1) it doesn't work on Lite and 2) Block.serve_static_file() is not async

* Fix Button.svelte to use @gradio/image instead of the native <img /> for Lite

* add changeset

* Add _mark_svg_as_safe to move_files_to_cache as well like async_move_files_to_cache in #9765

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-19 00:01:21 -05:00
Abubakar Abid
fed5531867 patch 2025-02-18 17:39:01 -08:00
Abubakar Abid
f8eb8e565b
Pass kwargs into gr.ChatInterface created by gr.load() (#10624)
* pass kwargs

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-18 16:38:49 -08:00
Abubakar Abid
ce4fb994e0
fix spelling of resizable parameter in gr.Chatbot (#10625)
* fix spelling

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-18 16:36:38 -08:00
Bryce Guinta
5aa9925e8a
Add documentation example for chatbot.clear (#10618)
* Add documentation example for chatbot.clear

* guide

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-18 16:33:26 -08:00
Bilal Himite
49492dd2fc
Fix subroutine in Windows batch scripts (#10610) 2025-02-17 17:11:27 -08:00
Gradio PR Bot
5d11b1d63a
chore: update versions (#10588)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/core@0.10.1 @gradio/dataframe@0.16.1 @gradio/lite@5.16.1 @gradio/sidebar@0.1.3 @self/app@1.47.2 @self/spa@0.6.1 gradio@5.16.1 website@0.50.0
2025-02-17 17:09:27 -08:00
Hannah
88096a20c8
minor to patch (#10613) 2025-02-17 23:21:30 +00:00
Hannah
23cb267c5d
minor to patch (#10612) 2025-02-17 22:51:02 +00:00
Hannah
c354f5ff16
Add empty dataframe functionality (#10607)
* remove single row logic when value is empty

* fix header cell menu btn

* add add row button

* add changeset

* add changeset

* allow empty df example

* fix janky borders

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-17 22:16:27 +00:00
Charles
b8fada8772
[ZeroGPU] Handshake-based postMessage part.2 (non-SSR mode) (#10608) 2025-02-17 16:17:18 +00:00
Abubakar Abid
a8bde76e2b
Fix margin above gr.Dataframe when no header is provided (#10596)
* changes

* spacing

* format

* revert

* add changeset

* story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-17 14:55:57 +00:00
aliabid94
12669f4bf1
Row scale changes (#10595)
* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-14 20:02:01 -08:00
Dawood Khan
1299267a8a
Change sidebar position (#10582)
* position

* position

* add changeset

* fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-14 02:33:11 -05:00
Dawood Khan
b640df2517
Fix Sidebar for mobile (#10579)
* fix

* add changeset

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-13 18:04:01 -05:00
Ali Abdalla
2f686b7363
fix worker link (#10589) 2025-02-13 11:12:31 -08:00
Ali Abdalla
c4aa8864da
Semantic search in the playground (#10511)
* wording

* something

* changes

* some refactoring

* use error modal

* formatting

* add changeset

* fix problems with guide

* formatting

* oops

* changes

* scripts

* some experiment

* merge

* changes

* use branch until merge

* add changeset

* cleanup

* fix preview demo width

* multiple lines in the prompt

* better font-sizes

* remove white gap above code

* fix enter creating new line

* better styling for suggested demos

* mark edited demos in ui

* font, and arrow issue

* pressing x on error modal actually closes

* random typo on frontend guide

* upload demo requirements

* hide preview for non-lite demos

* fix existing code too long error

* fixes

* formatting

* add changeset

* error regen fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-13 11:02:55 -08:00
Abubakar Abid
1bfb0d6ff4 Revert "changes"
This reverts commit f5f9aa2339eea210c1c55141d0d0c1565ead3cd9.
2025-02-12 14:06:56 -08:00
Abubakar Abid
f5f9aa2339 changes 2025-02-12 14:05:51 -08:00
Gradio PR Bot
899ebb88af
chore: update versions (#10516)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/accordion@0.5.7 @gradio/annotatedimage@0.9.7 @gradio/atoms@0.13.2 @gradio/audio@0.17.1 @gradio/box@0.2.11 @gradio/browserstate@0.3.1 @gradio/button@0.4.6 @gradio/chatbot@0.23.0 @gradio/checkbox@0.4.13 @gradio/checkboxgroup@0.6.13 @gradio/client@1.12.0 @gradio/code@0.10.17 @gradio/colorpicker@0.4.13 @gradio/core@0.10.0 @gradio/dataframe@0.16.0 @gradio/dataset@0.4.6 @gradio/datetime@0.3.5 @gradio/downloadbutton@0.3.6 @gradio/dropdown@0.9.11 @gradio/fallback@0.4.13 @gradio/file@0.12.6 @gradio/fileexplorer@0.5.17 @gradio/form@0.2.11 @gradio/gallery@0.15.6 @gradio/highlightedtext@0.8.13 @gradio/html@0.6.4 @gradio/image@0.21.1 @gradio/imageeditor@0.12.8 @gradio/json@0.5.13 @gradio/label@0.5.5 @gradio/lite@5.16.0 @gradio/markdown-code@0.4.0 @gradio/markdown@0.13.3 @gradio/model3d@0.14.1 @gradio/multimodaltextbox@0.9.7 @gradio/nativeplot@0.5.7 @gradio/number@0.5.13 @gradio/paramviewer@0.7.1 @gradio/plot@0.9.8 @gradio/radio@0.6.13 @gradio/sidebar@0.1.2 @gradio/simpledropdown@0.3.13 @gradio/simpleimage@0.8.17 @gradio/simpletextbox@0.3.13 @gradio/slider@0.6.1 @gradio/statustracker@0.10.3 @gradio/tabitem@0.4.2 @gradio/tabs@0.4.2 @gradio/textbox@0.10.3 @gradio/theme@0.4.0 @gradio/timer@0.4.4 @gradio/upload@0.15.1 @gradio/uploadbutton@0.8.6 @gradio/utils@0.10.1 @gradio/video@0.14.1 @gradio/wasm@0.17.3 @self/app@1.47.1 @self/build@0.2.1 @self/component-test@0.5.7 @self/tootils@0.7.14 gradio@5.16.0 website@0.49.0
2025-02-11 17:58:27 -08:00
Hannah
b8ff5d6bfe
Add optional search bar to gr.Dataframe's toolbar (#10554)
* add test

* add changeset

* fix test

* amend filter behaviour

* fix label and toolbar placement

* edit story

* update filter logic

* rename show_search_input to show_search

* show_search_input rename

* tweak

* clean up

* clean up

* fix filter logic

* tweak

* fix test

* tweak

* amend show_seach options

* amend typing

* tweak

* amend search/filter behaviour

* clean up

* tweak

* more clean up

* tweak

* tweak

* Revert "tweak"

This reverts commit d22462efcb634c4af2e490e0424474745bb777e4.

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-12 01:28:44 +00:00
Hannah
26494cea57
Allow freezing columns in gr.Dataframe (#10561)
* add frozen col param

* ensure row numbers are frozen

* add changeset

* validate frozen cols value

* format

* ensure column widths are properly applied

* fix chromatic test

* tweak

* adjust col selection logic

* fix test

* rename frozen_cols to frozen_columns

* restore alternating background

* fix widths

* change implementation

* ensure first col cells can be selected

* fix cell selection in col 1

* Revert "change implementation"

This reverts commit 4fb932809fab9566abdd2fb27033f31faba39027.

* fix widths

* frozen => pinned

* Revert "frozen => pinned"

This reverts commit a37616d2b2b0b4b07b1e2444fe98b74435f70ca6.

* Revert "Revert "frozen => pinned""

This reverts commit f16964d15ccbf08ed3727d79c11322bc18ded2e3.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-11 22:29:49 +00:00
Yuichiro Tachibana (Tsuchiya)
a69c61c302
Fix the embedded Lite apps in the docs (#10488)
* Fix guides/09_gradio-clients-and-lite/06_gradio-lite-and-transformers-js.md to display the embedded Gradio-Lite apps properly

* Fix Gradio-Lite loaders

* add changeset

* add changeset

* Revert "Fix Gradio-Lite loaders"

This reverts commit 2178f485be58f617f0daa5fb4f0d5efb4436461b.

* delete changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-11 11:11:05 -08:00
Charles Fettinger
ed25a1053a
Add 1920px wide resolution for wide monitors (#10552)
* Add 1920px wide resolution for wide monitors

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-11 03:57:39 +00:00
Freddy Boulton
4e72dfef99
Fix Auth (#10560)
* add code

* add changeset

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-10 18:30:33 -05:00
aliabid94
083d68b223
quick_fix_client (#10547)
* quick_fix_client

* add changeset

* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-10 15:00:03 -08:00
Freddy Boulton
bcbb7b69f5
Fix DF Postprocess for tuples (#10548)
* fix

* add changeset

* add changeset

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-10 16:54:07 -05:00
Hannah
111300242f
Fix spacing issue with gr.Dataframe in Safari (#10558)
* fix safari spacing issue

* revert changes

* change approach

* add table

* add changeset

* tweak

* tweak

* remove grid

* remove css

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-10 19:52:35 +00:00
Hannah
4c08b9f3c0
Prevent scrolling when the dataframe cell menu is open (#10553)
* disable scroll when cell menu is open

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-10 19:27:54 +00:00
Freddy Boulton
9b87e12f1a
Fix gr.Plot change/load events and plotly css loaded (#10544)
* Fix

* Remove load'

* add changeset

* clear event remove

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-08 00:56:22 +00:00
Freddy Boulton
27155cfc0c
Native Plot respects the height parameters (#10546)
* make height responsive

* add changeset

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-07 19:45:01 -05:00
Hannah
196b600b39
Select entire row or column in dataframe (#10529)
* add story

* add changeset

* deselect cells when resizing

* clean up

* allow row/col selection in non-editable mode

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-07 23:38:29 +00:00
Hannah
e505fabecb
Add copy button feedback to gr.Dataframe (#10541)
* add copy button feedback

* add changeset

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-07 21:34:57 +00:00
Freddy Boulton
a18ac9c56a
Fix bug where plots wouldn't load when initial value provided (#10531)
* Fix interactive plot

* add changeset

* Add story

* add changeset

---------

Co-authored-by: Freddy Boulton <freddyboulton@hf-freddy.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-07 12:25:10 -05:00
Hannah
deeebfba46
Revert editable text changes (#10540)
* fix copy/select logic

* add changeset

* copy to csv intead of tsv

* fix test

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-07 16:50:27 +00:00
Dawood Khan
3748e4c902
Chatbot allow_tags (#10507)
* fix

* add changeset

* Update gradio/components/chatbot.py

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

* add changeset

* test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-07 03:36:29 +00:00
Yuichiro Tachibana (Tsuchiya)
8e2cf2f32c
Fix the wrapper function of micropip.install to throw the original error for better debug experience (#10466)
* Fix the wrapper function of micropip.install to throw the original error for better debug experience

* add changeset

* Fix js/lite/src/dev/App.svelte

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-06 19:22:21 -08:00
aliabid94
ccf590c6df
Expand tabs in row by default (#10524)
* expand_tabs_in_row

* add changeset

* changes

---------

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-07 03:20:31 +00:00
Hannah
d9098681f8
Ensure max_height is applied in gr.Dataframe (#10535)
* add user-select to non-editable cells

* apply max height to virtual table

* add changeset

* add story

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-06 19:14:08 -08:00