Freddy Boulton
a336508646
Fix bug preventing layout components to be used as custom components ( #7050 )
2024-01-19 02:02:08 +05:30
Ali Abdalla
45df1ce5d7
add imageeditor component demo ( #7067 )
2024-01-19 00:13:10 +04:00
aliabid94
3c3cf8618a
Fix UI freeze on rapid generators ( #7055 )
...
* changes
* add changeset
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 11:50:14 -08:00
WilliamHarer
64c65d8219
Add encoding to open/writing files on the deploy_discord function ( #7054 )
...
* Update client.py
Make open discord_chat.py call encoded to utf-8
* Update client.py
Add another encoding to line 850
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 14:40:59 -05:00
Aarni Koskela
aaecfe54d9
Themes: fix bogus header image URL ( #7060 )
...
* Themes: fix bogus header image URL
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 11:25:13 -05:00
Aarni Koskela
3642b7ac93
publish: simplify twine_files code ( #7058 )
...
* publish: simplify twine_files code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 11:15:45 -05:00
Freddy Boulton
9201f86450
Raise error in build step if custom component package is not installed ( #7046 )
...
* Check installation
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 10:44:32 -05:00
Freddy Boulton
8e5ab31d75
Only run flaky tests if flaky-tests label is applied to PR ( #7048 )
...
* Add label
* trigger ci
2024-01-18 10:33:32 -05:00
Dawood Khan
3f139c7c99
Fix File drag and drop for specific file_types ( #6982 )
...
* fix file drag
* add changeset
* pr fixes
* test
* add changeset
* tests
* fix
* type fix
* add changeset
* functional test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-01-17 18:12:15 -05:00
renovate[bot]
5bc6fca607
chore(deps): update actions/cache action to v4 ( #7047 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 17:13:51 -05:00
Freddy Boulton
6be3c2c47a
Fix Chatbot custom component template ( #7038 )
...
* move to core dependency
* add changeset
* lockfile
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-17 10:52:14 -05:00
Hannah
ec28b4e7c4
Add visible
and interactive
params to gr.Tab()
( #7018 )
...
* add tabs params and visible logic
* add disabled logic
* add tabbed_interface logic
* add tab accessibility improvements
* Add aria-disabled attribute to tab buttons
* add e2e test
* add changeset
* add changeset
* add tab e2e test
* formatting
* run generate_notebooks.py
* lint
* ensure tabs values update
* remove tabbedinterface logic
* Remove unused parameters from TabbedInterface constructor
* remove test
* add test
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-17 14:39:10 +01:00
Freddy Boulton
13dc8b0f38
Revert install ffmpeg action to version 2 ( #7039 )
2024-01-16 17:07:10 -05:00
Hannah
f2d69fc7d0
Fix gallery thumbnail design regression ( #7024 )
...
* tweak image thumbnail object fit
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-15 16:51:42 +01:00
Abubakar Abid
9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example()
to .process_example()
( #6933 )
...
* image-editor-examples
* add changeset
* add changeset
* delete changeset
* change to process_example()
* add changeset
* changes for all components until dataset.py
* rename
* fix checkboxgroup
* format
* changes
* add changeset
* changes
* add changeset
* radio
* add changeset
* changes
* add changeset
* changes
* examples
* remove print
* fix
* clean
* add changeset
* fix tests
* fix tests
* fix test
* fix
* add changeset
* fix video example
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
Dawood Khan
523b6bc534
gr.update(value=[])
for gr.File()
clears it (#6980 )
...
* bug fix
* add changeset
* Update js/file/shared/File.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2024-01-10 19:14:33 -05:00
pngwn
8b5174c96d
chore: update versions ( #7002 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-10 15:31:28 -08:00
Abubakar Abid
d3d8d2b81b
patch fix ( #7003 )
2024-01-10 15:28:23 -08:00
Ali Abdalla
a7db8c1b8a
Add env to lite build ( #7000 )
...
* add venv
* comma
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 15:22:22 -08:00
Abubakar Abid
576b7ce827
lite build fix: install build package ( #6999 )
...
* install build package
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 14:59:18 -08:00
Ali Abdalla
523c08fe30
Design changes to Playground ( #6997 )
...
* design changes to playground
* formatting
* add changeset
* share your app
* tweak
* 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>
2024-01-11 02:39:20 +04:00
pngwn
059e47eb62
fix lite build in ci ( #6998 )
2024-01-10 22:26:11 +00:00
pngwn
8f69f9ef50
chore: update versions ( #6960 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 01:42:25 +04:00
pngwn
0b1f68d2db
bump lite to match gradio ( #6996 )
...
* bump lite to match gradio
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 13:14:53 -08:00
Abubakar Abid
623bc1aeb1
Switch default order for sources for gr.Video
so that upload is the default ( #6994 )
...
* switch default video source
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 12:02:53 -08:00
Abubakar Abid
ccf317fc97
Add additional_inputs
, additional_inputs_accordion
parameters to gr.Interface
( #6945 )
...
* guide
* new docs
* changes
* interface
* add changeset
* add changeset
* added basic test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 11:44:00 -08:00
Ali Abdalla
71aab1c617
Add README to @gradio/lite ( #6989 )
...
* add readme
* add changeset
* Update js/lite/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/lite/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* remove private from lite package.json
* add note on cdn
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-10 23:20:00 +04:00
Yuichiro Tachibana (Tsuchiya)
5d00dd37ca
Make <UploadProgress /> Wasm-compatible ( #6965 )
...
* Make <UploadProgress /> Wasm-compatible
* add changeset
* Fix <DownloadLink /> not to prefetch the data in the Wasm mode
* add changeset
* Fix <DownloadLink /> to check the `window` object existence for SSR
* Lite: Fix and improve the file upload progress SSE (#6978 )
* Update the Wasm ASGI connection to be able handle ReadableStream, which is used for example in <Upload />"
* Fix wasm_proxied_fetch() not to pass a leading '?' in the query_string to WorkerProxy.httpRequest() because it's required by the ASGI spec
* Fix FileUploadProgress.update() to merge a new item to the existing one in the queue
* Fix the SSE stream async task in the /upload_progress endpoint removing an unreached code block. `await asyncio.sleep()` has been moved from the unreached block to a live location, so the stream cadence has been reduced
* Fix `FileUploadProgress` to manage the `is_done` flag independent from the queue because it has a different semantics and checking it is a priority over reading other progress events to abort the SSE stream when uploading is done
* Refactoring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-10 21:27:58 +04:00
Hannah
0f0498bf97
Ensure Chatbot theme text size is set correctly ( #6958 )
...
* set font size to text body variable
* revert comment
* add changeset
* remove line height
* add function to adjust body text size to prevent breaking change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 13:41:35 +01:00
Tom Jorquera
c264828f92
docs: fix dead links in guides ( #6985 )
...
Fix dead links to doc in guides.
The dead link to
https://gradio.app/guides/quickstart/#blocks-more-flexibility-and-control
has been replaced by https://gradio.app/blocks-and-event-listeners .
Note: the CHANGELOG also has some references to the old links. I did not
change those in this commit.
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-10 04:19:48 +04:00
aliabid94
6e285be8ed
Fix the reloader ( #6983 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-09 15:18:07 -08:00
Yuichiro Tachibana (Tsuchiya)
5e0016267f
Make <Gallery /> Wasm-compatible ( #6967 )
...
* Use @gradio/image/shared/Image.svelte in the Gallery component for Wasm support
* Make the download button on the Gallery component Wasm-compatible
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-09 11:34:46 +09:00
Hannah
793bf8f7b1
Display pending file in <Upload />
while waiting for upload request ( #6969 )
...
* show file to be uploaded before request begins
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-08 17:36:41 +01:00
Dr. Christoph Mittendorf
8dfabee004
fixed typo ( #6963 )
...
* fixed typo
stored vs storied
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-07 18:57:07 -08:00
Dawood Khan
640b7fe052
Fix issue with Webcam Recording ( #6885 )
2024-01-05 19:18:59 -05:00
pngwn
3a0a11cf42
chore: update versions ( #6882 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 16:02:25 -08:00
Dr. Christoph Mittendorf
7bab755f7c
Fixed (this this) ( #6956 )
...
* Fixed (this this)
Spelling
* add changeset
* more fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-04 15:41:11 -08:00
aliabid94
6c863af92f
Fix functional tests ( #6931 )
...
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-04 15:39:16 -08:00
Hannah
d361a0f179
Ensure camera settings only update when necessary in Model3D ( #6871 )
...
* change reset_camera_position reactivity logic
* check for changes when resetting scene
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 10:39:57 -08:00
thiswillbeyourgithub
377725cbb7
docs: example for keyboard shortcut using custom js ( #6952 )
...
* docs: example for keyboard shortcut using custom js
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md
---------
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-04 10:31:16 -08:00
Abubakar Abid
b1b78c2168
Fix .select
for gr.Image
, gr.CheckboxGroup
( #6942 )
...
* fix .select for Image, CheckboxGroup
* add changeset
* generate notebook
* fix
* add changeset
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 07:57:18 -08:00
Abubakar Abid
e671e5415f
Allow gr.ClearButton
and gr.DuplicateButton
to be made hidden (and otherwise updated) ( #6932 )
...
* clear visible
* test
* other buttons
* add changeset
* move resource to block cache
* revert
* Revert "revert"
This reverts commit 9830f253ac
.
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-03 11:29:16 -08:00
Abubakar Abid
c00da89c3e
Fix returning copies of a component instance from a prediction function ( #6940 )
...
* add test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-03 11:26:58 -08:00
renovate[bot]
de603edfe2
Update FedericoCarboni/setup-ffmpeg action to v3 ( #6941 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-03 08:15:17 -08:00
D
459c5dc989
replacing distutils.StrictVersion dependency for Python 3.12 ( #6938 )
...
* replacing distutils.StrictVersion dependency with packaging.version.Version after distutils deprecation (in 3.10) and removal in Python 3.12 (see https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated )
* add changeset
* remove distutils
* add changeset
---------
Co-authored-by: daniel <daniel@tfc.ai>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-03 08:05:40 -08:00
Ronen Schaffer
02c2442217
Fix docstring of deprecated parameter concurrency_count ( #6916 )
...
* Fix docstring of deprecated parameter concurrency_count
The old docstring mentioned that it has no effect. Contrary to that, it will raise an exception.
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-02 13:34:32 -08:00
koji
ad76f702c2
fix item number in custom css and js doc ( #6915 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-02 13:33:42 -08:00
Yuichiro Tachibana (Tsuchiya)
f742d0e861
Lite: Support AnnotatedImage on Wasm ( #6133 )
...
* Make AnnotatedImage Wasm-compatible
* add changeset
* Fix AnnotatedImage.svelte to render `<img>`s immediately and update their `src` values after those are resolved asynchronously
* Fix comments
* add changeset
* Rename a variable for consistency with `Image.svelte`
* Fix a variable name
* Rename to
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:43:34 +04:00
Yuichiro Tachibana (Tsuchiya)
bd11d6e570
Remove the styles on the audio elements in the Chatbot component ( #6899 )
...
* Remove the styles on the audio elements in the Chatbot component
* 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-01-02 11:41:59 +04:00
Yuichiro Tachibana (Tsuchiya)
4511d57c46
Fix the aria-label attrs in gr.Chatbot()
( #6900 )
...
* Fix the aria-label attrs in `gr.Chatbot()`
* 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-01-02 11:41:28 +04:00