Commit Graph

1128 Commits

Author SHA1 Message Date
Abubakar Abid
7d77024cb8
Fix dataframe height increasing on scroll (#9892)
* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-04 10:39:04 -08:00
aliabid94
4d9088354d
Allows selection of directories in File Explorer (#9835)
* changes

* changes

* changes

* add changeset

* changes

* Update js/fileexplorer/shared/FileTree.svelte

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

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-04 17:54:35 +00:00
Hannah
6c8a064fee
Ensure non-form elements are correctly positioned when scale is applied (#9882)
* apply margin when scale is null

* remove console.log

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-04 17:23:40 +00:00
Yuichiro Tachibana (Tsuchiya)
a1582a6dca
Lite worker refactoring (#9424)
* Remove a comment no longer correct

* add changeset

* Fix custom element registration timing

* add changeset

* add changeset

* Revert change on custom-element/index.ts

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-11-03 07:01:10 +09:00
Yuichiro Tachibana (Tsuchiya)
f109497e82
Fix frontend errors on ApiDocs and RecordingSnippet (#9786)
* Fix frontend errors on ApiDocs and RecordingSnippet

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-11-02 17:57:06 +09:00
Hannah
fc124964a1
Allow uploading more files in gr.File (#9891)
* add upload to icon buttons in file

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-01 19:16:15 -07:00
aliabid94
d1cfe1e9de
Allow plot tooltip to show extra columns (#9800)
* changes

* add changeset

* changes

* changes

* chanes

* 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>
2024-11-01 19:00:22 -07:00
Abubakar Abid
d407c00715
Add .download() event to gr.File (#9887)
* add .download() event

* add changeset

* format

* Update gradio/events.py

* Update gradio/events.py

* fix story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-01 08:12:58 -07:00
Hannah
6866a5433a
Ensure gallery share button is positioned correctly (#9881)
* move gallery share button

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-01 15:06:29 +00:00
Hannah
dbc62fcdae
fix story (#9890) 2024-11-01 14:51:26 +00:00
Freddy Boulton
69acfebffd
Make sure the Tool accordion is closed if it is not the last message (#9826)
* fix

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-31 18:48:47 -04:00
Abubakar Abid
8305ff8712
Adds .expand() and .collapse() events to gr.Accordion (#9875)
* feat: add expand and collapse events to Accordion component

* change

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-10-31 14:55:41 -04:00
rahulsamant37
c1cb5be2d7
Fix: Resolve copy button visibility issue in Textbox component (#9859)
* Fix: Resolve copy button visibility issue in Textbox component

* restore tabs

* add changeset

* changes

* 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: aliabid94 <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-30 22:51:41 -07:00
pngwn
85731e7eba
bump version (#9850)
* bump version

* add changeset

* remove changeset

* add changeset

* delete changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-25 23:25:12 +00:00
Gradio PR Bot
8e5b5a201e
chore: update versions (#9790)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-25 12:33:07 -07:00
aliabid94
78e3b517af
Allow setting plotly margins (#9805)
* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-25 11:44:38 -07:00
aliabid94
a4e70f3c42
Fix Tabs in Rows (#9836)
* changes

* add changeset

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-10-25 11:44:00 -07:00
Cornelius
767643fdec
Fix a bug in example textbox rendering when it is initially invisible (#9831)
* Fix a bug in example textbox rendering when it is initially invisible

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-10-25 05:21:15 +00:00
Lorenzo Cian
f15808eff3
fix: use system timezone in gr.DateTime with include_time=False (#9825)
* fix: use system timezone in gr.DateTime with include_time=False

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-24 11:43:01 -07:00
Hannah
b1b81c9e1c
Hide option to add row/col when count is fixed in dataframe (#9649)
* * hide add row or col if  count is fixed
* restore selected cell outline

* add changeset

* * fix selected cell border
* close cell menu on window resize

* tweak

* fix test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-24 15:03:10 +01:00
Yuichiro Tachibana (Tsuchiya)
7cce63e29f
Ask LLM to generate the requirements.txt in the playground (#9647)
* Ask LLM to generate the requirements.txt

* add changeset

* Fix

* Remove adhoc installs

* Suspend auto-run during code generation by LLM

* Add a rule to make sure the code includes all necessary imports

* Format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-10-24 10:40:26 +09:00
Yuichiro Tachibana (Tsuchiya)
7b6bd31881
Fix the tab names in the playground (#9811)
* Rename the `name` prop to `label` on TabItem in DemosLite

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-23 22:15:16 +09:00
Dawood Khan
1163a372a6
Fixes component info font size (#9651) 2024-10-23 01:49:09 -04:00
Hannah
3b9ed299e9
Fix avatar image placement in Chatbot (#9769)
* fix avatar images in chatbot

* add changeset

* revert comments

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-10-22 21:55:48 +01:00
pngwn
cc39d3b737
build essential packages fpor functional tests (#9802) 2024-10-22 20:21:02 +01:00
pngwn
70bda3bb18
fix storybook build (#9794)
* fix storybook build

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-22 17:13:59 +00:00
pngwn
d2b56a4c04
more fix (#9792)
* more fix

* add changeset

* bump deps

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-22 16:43:29 +01:00
pngwn
df1cf8f6c5
Speed up CI by avoiding the need to package (#9791)
* optimise typechecking

* fix builds
2024-10-22 15:43:38 +01:00
Gradio PR Bot
5a2967e78a
chore: update versions (#9747)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-21 19:28:58 -07:00
Hannah
61cd768490
Ensures tabs with visible set to false are not visible. (#9653)
* * fix tab visibility
* add story

* add changeset

* stuff

* fix

* more fix

* fix undefined tab labels

* fix tabs again

* add changeset

* format

* format

* fix type

* add changeset

* fix all things

* format

* add changeset

* notebooks

* visible tabs

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-10-21 16:46:01 -07:00
aliabid94
7579e92971
Allow smoother plot changes (#9781)
* changes

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-21 16:15:04 -07:00
Hannah
38701a9971
Fix icons not showing in Safari (#9758)
* add 100% w x h

* add changeset

* add wxh 100%

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-21 12:43:09 -07:00
aliabid94
47b556523d
Fix broken image select (#9770)
* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-21 12:16:23 -07:00
Daniel Jyllikoski
6d933bea60
i18n: added Finnish translations for all existing UI tokens (#9779) 2024-10-21 11:39:27 -07:00
Ali Abdalla
92f337cc85
Fix website build issue (#9756) 2024-10-18 23:00:04 +04:00
lcjia_you
8d848dd1e4
Add a port timeout detection feature for gradio/preview. (#9707)
* Add a port timeout detection feature for gradio/preview. This feature can help users receive more informative messages when running 'gradio cc dev' in case of network issues

* add changeset

* add changeset

* fix

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-17 12:28:07 -07:00
Hannah
cd7dab7ba5
Improve select event behaviour in gr.Dataframe (#9654)
* add last_selected prop

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-10-17 11:12:01 -07:00
Yuichiro Tachibana (Tsuchiya)
2ade59b95d
Export Tabs type from @gradio/tabs and fix the Playground to be compatible with the new Tabs API (#9738)
* Export Tab type from @gradio/tab

* Fix DemosLite to use the new Tabs API

* add changeset

* Set the default value of the initial_tabs props

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-17 11:09:24 -07:00
pngwn
5015abbd78
fix @gradio/sanitize exports (#9746)
* fix pkg.json

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-17 18:37:49 +01:00
Gradio PR Bot
86fdd9361e
chore: update versions (#9737)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-16 18:07:49 -07:00
Freddy Boulton
cd3fab3b1f
Fix functional tests pt 2 (#9713)
* tests

* fix race condition

* fix test

* try again

* revert changes

* 🤞

* see failure

* add changeset

* add changeset

* Fix

* Fix

* make apply pass

* try

* check

* remove first

* fix code

* delete changeset

* fix reload test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-16 17:40:44 -07:00
Freddy Boulton
39a0e8c2fb
Fix chatbot component streaming bug and visible bug (#9730)
* Fix chatbot

* fix styling

* add changeset

* fix visible

* add changeset

* comments

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-16 17:36:33 -07:00
Gradio PR Bot
6953f1957f
chore: update versions (#9697)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-16 23:36:14 +01:00
Freddy Boulton
7134fc272e
Custom component fixes (#9711)
* add code

* Add code

* add changeset

* compatible lockfile

* add code

* add changeset

* trigger-ci

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-10-16 15:11:39 -07:00
pngwn
d0b2ce8c0f
Ensure tabs render in SSR mode and reduce time it takes for them to render. (#9728)
* fix tabs in SSR

* format

* add changeset

* remove log

* add changeset

* more ifx

* fix more

* more fix

* types

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-16 21:11:17 +01:00
Yuichiro Tachibana (Tsuchiya)
7ec57cb018
Fix Lite dependencies (#9719)
* Fix Lite dependencies

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-16 09:32:02 -07:00
Abubakar Abid
1500c3b11f
fix tests (#9720)
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-10-16 08:42:13 -07:00
Abubakar Abid
b1a0f6db0d
Fix the behavior of gr.LoginButton locally and on Spaces (#9659)
* changes

* add changeset

* changes

* add changeset

* changes

* add changeset

* add changeset

* clean

* typing

* button

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-15 22:13:34 -07:00
Hannah
31418ef388
fix table type check (#9709)
* fix type check

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-15 12:23:36 -07:00
Tristan Zhang
2ed236187a
Allow setting title in gr.Info/Warning/Error (#9681)
* Allow setting title in gr.Info/Warning/Error

* fix

* add changeset

* allow title in gr.Error

* make argument consistent

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-15 09:58:00 -07:00