Hannah
cfb62bfdb5
Allow dataframe column content to wrap ( #9949 )
...
* camend header-content css wrap
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 13:08:38 -08:00
Abubakar Abid
fc06fe41f0
Add ability to read and write from LocalStorage ( #9950 )
...
* localstate
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* add changeset
* format
* notebook
* some changes
* add changeset
* format
* fix
* changes
* fix js lint and ts
* add changeset
* fix pytest
* component demo
* rename
* rename
* notebooks
* revert
* changes
* revert
* revert
* revert
* changes
* changes
* format
* fix
* notebook
* docstring
* guide
* types
* cleanup
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:56:36 -08:00
gianlucaelia
eae345e5fd
Allow settings custom headers in js client ( #9930 )
...
* Allow settings custom headers in js client
* add changeset
* get_jwt doesn't need additional headers
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-15 12:05:45 -08:00
Dawood Khan
75ad3e3419
SSR Safari Fix ( #9958 )
...
* fix
* add changeset
* fix
* fix
* fix
* update
* fix chrome
* move logic
* format
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:03:31 -05:00
Hannah
74b4ff0e61
Ensure radio radius is consistent with checkbox radius ( #9901 )
...
* ensure radio uses checkbox radius var
* add changeset
* amend checkbox group label radius
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:33:59 +00:00
Benjamin Klieger
4e1f7dbcb2
Add new tutorial for automatic voice detection app ( #9934 )
2024-11-13 16:54:00 -04:00
Abubakar Abid
213b038e36
changes ( #9947 )
2024-11-13 08:56:57 -08:00
Abubakar Abid
a966e9f753
Hide upload button after upload when file_count="single"
( #9946 )
...
* format'
* add changeset
* add 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-12 14:39:57 -08:00
meg
ceb4005bb6
Fix random_demos.py issues ( #9927 )
...
- Removes assumption/requirement that the script is run specifically in the demo/ directory.
- Removes assumption/requirement that there are 3 unwanted large demos that should be removed. (Note: currently, the `.gradio/flagged` demo isn't there, so it will throw an error.)
2024-11-12 12:47:36 -08:00
meg
1555321f6f
Explain that PYTHONPATH must be updated ( #9925 )
...
* Explain that PYTHONPATH must be updated
Cloning this repository, then building & running scripts, can run into the issue of the `import gradio` call pulling `gradio` in from somewhere else (such as the virtual environment). To address this, users need to tell python where to look in order to use the cloned git repo for `gradio`.
Further details in https://huggingface.slack.com/archives/C02SPHC1KD1/p1731207233633159?thread_ts=1731206608.882719&cid=C02SPHC1KD1 for more
* tweaks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-12 12:44:57 -08:00
Muhammad Yaseen
a70ba5e0f0
Clearer error message in Dropdown's and Radio's preprocess function ( #9921 )
...
* Clearer error message in Dropdown's and Radio's preprocess function
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-11 19:44:31 +00:00
meg
66375acb5c
Fix typo in Exception raised by base.py ( #9933 )
...
* Fix typo in Exception raised by base.py
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-11 11:15:08 +00:00
Hannah
c0cf80bddd
Allow datetime value to be null ( #9897 )
...
* change valid date check
* add changeset
* move clear event and dispatch clear
* remove clear event
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-07 23:12:41 +00:00
TakaSoap
d81f430fd5
fix: Fix filename stripping to preserve extensions ( #9913 )
...
* fix: Fix filename stripping to preserve extensions
* fix tests
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-07 14:52:20 -04:00
Hannah
f523c915d3
Ensure dropped files are validated in MultimediaTextbox ( #9904 )
...
* add logic to validate dropped files
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-06 19:40:10 +00:00
Muhammad Yaseen
eafe22cd94
Clearer error message in CheckboxGroup's preprocess function ( #9906 )
...
* Clearer error message in CheckboxGroup's preprocess function
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-05 19:49:32 -04:00
Gradio PR Bot
b5eaba1d6d
chore: update versions ( #9874 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 14:59:10 -08:00
Freddy Boulton
fa5d4339d6
Do not load code in gr.NO_RELOAD in the reload mode watch thread ( #9886 )
...
* add code
* add changeset
* no if __name__ reload twice
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-04 13:50:52 -08:00
Yuichiro Tachibana (Tsuchiya)
b6725cf6c1
Lite auto-load imported modules with pyodide.loadPackagesFromImports
( #9726 )
...
* Call pyodide.loadPackagesFromImports() for each Python file and dispatch an event including the result
* Fix
* Call pyodide.loadPackagesFromImports from run_code
* Update DemosLite to listen the modules-auto-loaded event and upload the requirements automatically
* add changeset
* 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-04 13:50:27 -08:00
Freddy Boulton
e10bbd236f
Fix live interfaces for audio/image streaming ( #9883 )
...
* Fix live interfaces for audio/image streaming
* add changeset
* code
* code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-04 16:20:48 -05:00
Freddy Boulton
dcfa7ad3e8
Enforce meta
key present during preprocess in FileData payloads ( #9898 )
...
* add code
* add code
* add changeset
* revert
* use is_file_obj_with_meta
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-04 15:00:27 -05:00
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
Dawood Khan
120198fe2d
Fixes LoginButton for SSR ( #9880 )
...
* test
* add changeset
* test
* test
* test
* fix
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-01 08:13:44 -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
Dawood Khan
d9a0f17920
Update CONTRIBUTING.md to emphasize that primarily AI-generated contributions are not welcome ( #9873 )
...
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-30 21:21:57 -07:00
Freddy Boulton
7ed8d02979
Fix Loading SSR'd apps via gr.load ( #9827 )
...
* add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-30 21:09:10 +00:00
Dawood Khan
458a38cabb
Fixes for ChatInterface Examples when additional inputs are provided ( #9804 )
...
* fix
* add changeset
* fix
* remove prints
* fix
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-30 13:01:52 -04: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
Lorenzo Cian
8f40bd2e47
docs: update CONTRIBUTING.md with troubleshooting step for JS OOM error in scripts/build_frontend.sh ( #9845 )
...
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-10-25 11:43:28 -07:00
Yuichiro Tachibana (Tsuchiya)
854ec6ff8f
Add requirements.txt to the gradio-lib-front-end-lite cache key ( #9842 )
2024-10-26 00:12:50 +09: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
Ali Abdalla
febbed6db1
Pin multipart version to fix issues with yanking ( #9834 )
...
* pin multipart
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-25 11:55:01 +09: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
Abubakar Abid
ff5be457dc
Use safehttpx.get()
instead of async_get_with_secure_transport()
( #9795 )
...
* changes
* add changeset
* format
* format
* format
* add changeset
* remove tests
* bump
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-23 12:33:13 -07:00