pngwn
2f68c9d988
Refactor and redesign ImageEditor
component ( #10635 )
...
* thanks o3
* add changeset
* more
* make events work
* moreeeeeee
* prettier
* nb
* add changeset
* Update utils.py (#10773 )
### Description
This pull request updates the `get_node_path` function in the `gradio/utils.py` file to handle scenarios where the `which` command is missing. The function has been improved by splitting the error handling into two separate `try` blocks for better granularity and robustness.
### Changes Made
- Split the `try` block into two separate `try` blocks for handling Windows and Unix-like systems.
- Added error handling for `FileNotFoundError` in addition to `subprocess.CalledProcessError`.
### Rationale
The original implementation did not properly handle the case when the `which` command is missing. This update ensures the function gracefully handles such scenarios and continues to check other possible locations for the `node` executable.
* fix: latex rendering of markdown (#10765 )
* fix: latex rendering of markdown
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* more
* Tweak Image Editor UI (#10779 )
* tweak layers ui
* upload alignment and text colour
* change check icon
* zoom tweaks
* tweak layers panel
* changes
* more
* fix image inputs
* more fix
* fix
* fix loading layer via events
* fix loading layer via events
* allow developers to control layers more granularly
* disable pan button when at min zoom
* Update image_editor.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* show visual indicator for outpainting region
* ensure initial image values work
* fix cropped image placement
* fix crop intiialisation options
* demos and fix brush opacity options
* fix layer_options updates and add demo
* more
* fix webcam
* fix
* fix
* improve color swatches
* fix canvas resizing
* simplify crop
* fix crop yet again
* rework controls
* scripts
* tweaks
* tweaks
* fix things
* Add two more demos for `gr.ImageEditor` (#10946 )
* changes
* sketchpad
* changes
* various fixed
* generate notebooks
* update changes
* lockfile
* format code
* notebooks
* tweaks
* fix test
* fix notebooks
* changes
* fix storybook
* changes
* interface
* remove redo/undo story
* fix pytest
* changes
* push
* fiiiiiix
* tweaks
* fix
* fix thingy
* tweaks
* changeset
* add changeset
* fix
* fix
* website build issue
* add changeset
* add layeroptions to docs
* formatting
* 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: Pablo Speciale <pablospe@users.noreply.github.com>
Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-04-08 22:02:04 +01:00
Gradio PR Bot
097838c7ae
chore: update versions ( #10911 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-01 14:25:15 -07:00
Zero King
01b88c7fde
Improve API error handling in JS Client ( #10890 )
...
* Improve API error handling in JS Client
* add changeset
* Skip broken test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2025-04-01 13:01:03 +00:00
João Severino
2de9f57412
Fix #10318 : Image component omit comma on the file name. ( #10899 )
...
Comma added to valid alphanumerical characters in utils.py
Co-authored-by: João Severino <joao.leal.severino@tecnico.ulisboa.pt>
2025-03-31 12:02:24 -04:00
Gradio PR Bot
846b60dbd5
chore: update versions ( #10848 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-24 15:52:12 -04:00
Freddy Boulton
c05610c87d
Add Deep Links ( #10834 )
...
* WIP
* Fix
* roughdraft
* Workinig
* query params
* add changeset
* modify
* revert
* lint
* Code
* Fix
* lint
* Add code
* Fix
* Fix python unit tests
* Update `markupsafe` dependency version (#10820 )
* changes
* add changeset
* type
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Adds a watermark parameter to `gr.Chatbot` that is added to copied text (#10814 )
* changes
* add changeset
* format'
* test
* copy
* changes
* doc
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix gr.load_chat (#10829 )
* changes
* add changeset
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix typo in docstring of Request class in route_utils.py (#10833 )
* Fix cell menu not showing in non-editable dataframes (#10819 )
* remove editable condition
* - add test
- improve html semantics
* add changeset
* fix test
* fix test
* - fix test
- fix column widths changing on sort
* swap e2e for story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Sketch code generator (#10824 )
* changes
* changes
* add changeset
* 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>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore: update versions (#10811 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* minor fixes
* fix
* Add guide
* Minor tweaks
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abdesselam Benameur <abdesselambenameur.pro@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Gradio PR Bot <121576822+gradio-pr-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-21 14:15:34 -04:00
Gradio PR Bot
ca2e4c86ce
chore: update versions ( #10810 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-14 17:24:42 -04:00
Freddy Boulton
99b69df1c0
Trigger python client release ( #10809 )
...
* empty
* modify
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-14 17:18:23 -04:00
Max Friedrich
5e14c43338
Fix for Pydantic 2.11.0b1: handle {..., "additionalProperties": true} in JSON schema ( #10798 )
...
* Handle {..., "additionalProperties": true} in JSON schema
* Fix models
* Add code
* Fix formatting
* changeds
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-13 21:00:35 +00:00
Gradio PR Bot
db0e09ce21
chore: update versions ( #10717 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-06 14:29:33 -08:00
aliabid94
16244f3c1c
Event Listeners in gradio sketch ( #10694 )
...
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* chagnes
* add changeset
* changes
* fix sidebar visible false
* 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-03-05 01:39:45 -08:00
aliabid94
b710d7cf13
Fix error display ( #10719 )
...
* changes
* add changeset
* 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>
2025-03-04 14:17:13 -08:00
Gradio PR Bot
87820551ee
chore: update versions ( #10693 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-28 13:16:35 -08:00
Abubakar Abid
16d419b9f1
Allow functions that solely update component properties to run in the frontend by setting js=True
( #10500 )
...
* changes
* add changeset
* revert
* changes
* add changeset
* changes
* fe changse
* notebook
* changes
* fix fe
* changes
* add changeset
* change
* add changeset
* notebook
* add tests
* changes
* changes
* changes
* changes
* changes
* type
* changes
* changes
* changes
* notebooks
* fix
* fix
* changes
* changes
* changes
* changes
* changes
* notebooks
* changes
* revert
* changes
* changes
* changes
* notebook
* changes
* done
* changes
* add changeset
* update
* changes
* add changeset
* added a guide
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-28 12:45:20 -08:00
Gradio PR Bot
42053705a8
chore: update versions ( #10651 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-24 17:58:24 -08:00
Freddy Boulton
0b1f72941f
Allow websocket version 15 ( #10664 )
...
* Allow ws 15
* 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-24 15:26:51 -05:00
Gradio PR Bot
de3c79c6b3
chore: update versions ( #10626 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-19 11:47:33 -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
Gradio PR Bot
899ebb88af
chore: update versions ( #10516 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-11 17:58:27 -08: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
Abubakar Abid
29880d51fb
Allow showing progress updates on arbitrary components ( #10492 )
...
* changes
* changes
* add changeset
* changes
* changes
* add changeset
* add changeset
* format
* typing
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2025-02-05 16:52:15 -08:00
Gradio PR Bot
f611983323
chore: update versions ( #10479 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
Gradio PR Bot
b7b96e61fb
chore: update versions ( #10464 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
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
Gradio PR Bot
7377055815
chore: update versions ( #10349 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-22 14:44:41 -08:00
Abubakar Abid
6a7cfc4264
Compatibility between Client and ZeroGPU ( #10352 )
...
* changes
* changes
* changes
* add changeset
* revert
* add changeset
* change
* changes
* changes
* changes
* format
* changes
* changes
* make public method and add tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-01-14 15:39:39 -08:00
Gradio PR Bot
7fa9b6fc97
chore: update versions ( #10316 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-10 12:39:10 -08:00
aliabid94
e742dcccb3
Allow users to add a custom API route ( #10332 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* chagnes
* 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-01-10 11:46:57 -08:00
Charles
bb11a2a702
[ZeroGPU] Handshake-based postMessage ( #10270 )
...
* handshake-based ZeroGPU postMessage
* HF Hub dev mode
* window is always defined here
* pnpm format:write
* add changeset
* change
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-10 02:35:19 +00:00
Gradio PR Bot
135630e187
chore: update versions ( #10218 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-06 16:02:55 -08:00
Abubakar Abid
da0770748d
Add a settings
link to the footer with i18n options & pwa instructions ( #10254 )
...
* changes
* add changeset
* changes
* changes
* restore
* changes
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* format
* changes
* changes
* changes
* changes
* add guard
* changes
* more changes
* format frontend
* add changeset
* add more translations
* format
* changes
* spacing
* changes
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-30 22:30:13 +00:00
Hafedh Hichri
f3bedd4011
add gr.Success and update windows contributing ( #10262 )
...
* include windows contributions
* add gr.Success
* add changeset
* contributing
* changes
* clean docstring
* format
* fix typo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-30 15:25:48 +00:00
Dmitry Ustalov
3f192100d6
Declare exports in __all__ for type checking ( #10238 )
...
* Declare exports
* add changeset
* type fixes
* more type fixes
* add changeset
* notebooks
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-12-23 22:33:22 +00:00
Abubakar Abid
506bd2884a
Update Guides related to deploying Gradio chatbots to Discord, Slack, and website widgets ( #10221 )
...
* changes
* changes
* update
* chat history
* add changeset
* changes
* add changeset
* changes
* guide
* changes
* changes
* changes
* guide
* add images
* slack guide
* changes
* format
* add changeset
* finish up slack
* changes
* improve js guide
* update
* changes
* script
* changes
* changes
* add changeset
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/05_chatbots/06_creating-a-discord-bot-from-a-gradio-app.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/05_chatbots/08_creating-a-website-widget-from-a-gradio-chatbot.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/05_chatbots/08_creating-a-website-widget-from-a-gradio-chatbot.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* gradio
* cta
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-12-20 20:36:29 +00:00
Gradio PR Bot
dc87afecf4
chore: update versions ( #10127 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-13 12:58:27 -08:00
Abubakar Abid
c9ba9a4475
Use the modern lower-case Python types in the API typing information ( #10196 )
...
* changes
* add changeset
* add changeset
* add changeset
* changes
* format backend
* format
* fix imagedata
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 12:10:47 -08:00
Abubakar Abid
424365bdbd
JSON type fix in Client and and typing fix for /chat
endpoint in gr.ChatInterface
( #10193 )
...
* fix
* add changeset
* add changeset
* fix
* chat interface fixes
* rename
* add changeset
* format
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 01:58:03 +00:00
Gradio PR Bot
c5ae60780c
chore: update versions ( #10082 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-04 15:04:48 -08:00
Abubakar Abid
5ea3cb51a3
Update requirements.txt
for gradio
and gradio_client
( #10090 )
...
* update reqs
* add changeset
* add changeset
* Update requirements.txt
* Update requirements.txt
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-02 15:02:52 -05:00
Gradio PR Bot
b400706fb6
chore: update versions ( #9970 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-27 18:10:49 -05:00
Chandler-Bing
a95fda1f85
Update client.py ( #10017 )
...
Update client.py
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-11-25 20:17:25 +00:00
Gradio PR Bot
4d520a8a7b
chore: update versions ( #9908 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-15 16:16:39 -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
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
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
pngwn
6505d4289a
support gradio apps on spaces served on subpaths ( #9814 )
...
* support spaces served on subpaths
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-10-23 12:46:30 +01:00
Samy FERGUI
f971ca6ab5
added audioop-lts module to support pydub for python3.13+ ( #9757 )
...
* added audioop-lts module to support pydub for python3.13+
* add changeset
* add changeset
* Revert "update prerequisite note to mention python 3.13 issue (#9710 )"
This reverts commit 2735e89cd8aa1896945ce3a4a3fa7fd256cda195.
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-22 13:57:25 -07:00