@gradio/code@0.19.0
43 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
36f6b4e571 |
upgrade starlette dependency to 1.0.1 or higher (#13430)
* changes * add changeset * changes * changes * changes * fix: resolve starlette>=1.0.1 in CI via per-package exclude-newer exemption The CI install (`uv pip install -e .`) failed with "only starlette<=1.0.0 is available" because the CI action sets UV_EXCLUDE_NEWER="7 days", which overrides pyproject's exclude-newer and excludes starlette 1.0.1 (released just inside the 7-day window boundary). Instead of widening the global window (which loosens pinning for every package), exempt starlette from exclude-newer via the existing exclude-newer-package mechanism, matching the hf-gradio/gradio-client pattern. Reverts the global "5 days" change back to "7 days". Also regenerate test/requirements.txt (Python 3.10): the previous hand-edit removed the fastapi/starlette pins leaving dangling references. fastapi is bumped to 0.136.1 (requires starlette>=0.46.0) so the editable gradio install can upgrade starlette to 1.x; fastapi 0.115.7 capped starlette<0.46. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test: drop gradio_pdf so the test lock can pin starlette>=1.0.1 The test lock pulled an old gradio (5.x) transitively via gradio_pdf, and every gradio 5.x caps starlette<1.0 — so test/requirements.txt resolved starlette to 0.52.1, contradicting the gradio dependency this PR bumps to starlette>=1.0.1. Remove gradio_pdf entirely (custom-component test surface) and the tests that import it: - test/requirements.in: drop gradio_pdf, add explicit starlette>=1.0.1 - delete test_custom_component_compatibility.py (gradio_pdf-only) - remove the skipped test_load_custom_component in test_external.py - drop the dead `component == PDF` branches in test_components.py (PDF was never in the core io_components fixture anyway) Also pass --exclude-newer-package starlette=false in create_test_requirements.sh: a CLI --exclude-newer overrides pyproject's entire exclude-newer config (including per-package exemptions), so the exemption must be repeated for the lock to see starlette>=1.0.1. test/requirements.txt now pins starlette==1.2.0; gradio's own runtime deps are no longer carried by the lock (they come from the editable install). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|
|
cab8be062d |
CLI/Agent API Docs (#13277)
* Add code * latest * add changeset * Exclude newer from gradio-client and hf-gradio * Add logos * Format * Remove ws + address comments --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
a1cbf32a3b |
Vendor in / pin Gradio dependencies and use exclude-newer flag in our CI (#13202)
* changes * add changeset * changes * add changeset * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * Use relative uv exclude-newer and bump CI uv * changes * changes * Force CI uv upgrade before use * Revert "Force CI uv upgrade before use" This reverts commit be9e0876d6de7bb096e0668ae241e78b3228aad2. --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
029034f785 |
[No Merge] Gradio 6.0 (#11908)
* Add code
* Fix
* version numbers
* Remove `crop_size` parameter from `ImageEditor` component (#12007)
* Remove crop_size parameter from ImageEditor __init__ function and docstring description
* Remove conversion code and deprecation warning message
* Fix docstring typo
* Remove deprecated ImageEditor crop_size references from demo files
* Remove crop_size parameters and variable assignments in super().__init__() calls for Sketchpad, Paint, and ImageMask classes that inherit from ImageEditor
* Regenerated notebook files
---------
Co-authored-by: pngwn <hello@pngwn.io>
* add changeset
* Fix (#12014)
* Remove tuples format from the chatbot (#12012)
* First draft
* Fix tests
* add changeset
* format
* Fix reload test
* Fix chatbot unit tests
* lint
* lint2
* Python unit tests
* Fix code
* Fix notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix: enable padding by default in Markdown component (#12010)
* fix: enable padding by default in Markdown component
* add changeset
* add changeset
* Fix: set the padding to false for both HTML and Markup
* Enable padding by default in HTML component
* fix: Fixed failing unit test and a docstring
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Make allow_tags=True the default in gr.Chatbot (#12027)
* Set allow tags to true by default.
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove all parameters with deprecation warnings (#12047)
* Fix
* Fix
* Fix
* lint
* Fix
* Remove max_length and min_length from gr.Audio and gr.Video (#12043)
* Audio
* Fix
* Video
* Fix
* Docs
* Fix tests
* Fix
* Fix
* Fix typos
* Add a single `buttons` parameter to components instead of the various `show_xxxxxxx_button` parameters (#12042)
* change buttons
* docstring
* changes
* changes
* notebooks
* changes
* changes
* fix tests
* fix lint
* changes
* changes
* fix json test
* story
* format
* Rename hf token to token (#12048)
* Rename hf_token -> token
* remove
* Do client
* remaining files
* Guides
* Fix
* empty
* Video subtitles (#12041)
* subtitles
* add video subtitles and allow json subs
* add changeset
* format
* notebook
* remove
* remove test files
* notebook fix
* merge fix
* remove unused prop
* type fix
* test fix
* test fixes
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix
* remaining fixes
* Fix rapid generation
* Remove Websockets (#11996)
* remove ws
* Fix:
* remove
* remove ws
* Format
* Bump client versions for release (#12059)
* Fix
* Fix
* fix (#12061)
* chore: update versions (dev) (#11909)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Handle special characters in native plot column names (#12064)
* changes
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove more deprecated parameters for the native plot components (#12063)
* more depr
* add changeset
* changes
* add changeset
* fix demos
* fix demos
* serial test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Gallery: Allow empty columns when items < columns (#12066)
* Allow empty columns when items < columns
* Fix
* add changeset
* fix button mistake
* Add story
---------
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Rename show_api (#12069)
* commit
* rename
* add changeset
* Change dependency versions to major
Updated dependency versions from minor to major for several packages.
* Fix test
* Rename
* empty
* Fix
* reformat
* empty
* Fix
* Empty
* Fix
* Fix
* Comments
* trigger
* Update demo/mcp_tools/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Use function name as the api route name in gr.Interface and gr.ChatInterface (#12086)
* Fix
* add changeset
* fix
* trigger ci
* trigger ci
* trigger ci
* Fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Extend Chatbot Message Format (#12051)
* Fix
* Chatbot fixes
* lint
* Fix
* Fix
* E2e test
* Add back feedback_value
* Fix
* Fix unit test
* add changeset
* Fix
* Fix unit tests
* Fix
* Fix tests
* WIP
* Fix
* Fix load_chat
* Fix guides
* Fix guides + Chat History
* Trigger ci
* Fix
* Fix stories
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Allow setting x limits independently in native plots (#12096)
* xlim independently
* add changeset
* fix
* changes
* changes
* Changes
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* chore: update versions (dev) (#12068)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Typo change. (#12107)
* Fix issue with boolean columns in dataframe (#12110)
* changes
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fixes for long legends in native plots (#12100)
* changes
* add changeset
* changes
* add changeset
* add changeset
* tweaks
* changes
* add changeset
* changes
* changes
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Upgrade version of `safehttpx` in `gradio` and use subdomain wildcards (#12117)
* changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Collapse reasoning traces automatically if developer sets reasoning_tags parameter (#12070)
* Fix
* Chatbot fixes
* lint
* Fix
* Fix
* E2e test
* Add back feedback_value
* Fix
* Fix unit test
* add changeset
* Fix
* Fix
* add changeset
* Allow setting x limits independently in native plots (#12096)
* xlim independently
* add changeset
* fix
* changes
* changes
* Changes
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix
* trigger ci
* trigger ci
* Fix
* Collapse thinking
* Fix
* empty
* empty
* Fix
* notebook
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix chatinterface textbox warning (#12080)
* Add warning for conflicting ChatInterface textbox parameters
* Fix warning logic and tests for conflicting ChatInterface textbox parameters
* add changeset
* Address review feedback: move test and remove comments
* make the warning example in English
* format
---------
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improve gr.MultimodalTextbox in mobile (#12088)
* improve mm textbox styling for mobile responsiveness
* more stying
* clean up
* update send button
* add changeset
* fix
* fix
* tweak
* lint
* add changeset
* clean up
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improve gr.Toast in mobile (#12099)
* * tweak toast styling
* add swipe to dismiss
* add changeset
* tweak
* light mode redesign
* add changeset
* tweak
* tweak spacing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix transpose of square polars Dataframes. (#12164)
* Fix huggingface-hub issue in lite (#12162)
* load from new wheel
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix transpose of square polars Dataframes.
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Anton Vattay <3martini@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* gr.HTML "custom components" (#12098)
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* chagnes
* 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>
* fix hello blocks
* Fixed several hardcoded UI labels in the chat_interface that did not implement i18n. (#12240)
* Implemented i18n for hardcoded chat_interface labels
* add changeset
---------
Co-authored-by: arterm-sedov <artem.sedov@comindware.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Feature/prettify error oversized files (#12085)
* feat: Added filesize util. Prettified filesize error
* add vitest tests
* move fallback to param default
* Update client/js/src/utils/filesize.ts
* changes
---------
Co-authored-by: Abubakar Abid <islamrealm@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add requests (#12249)
* New cache key for `6.0-dev` branch (#12217)
* Improve behaviour of gr.Checkbox (#12198)
* improve behaviour of checkbox and add stories
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update ZeroGPU guide to reflect best practices on manually passing an IP token (#12205)
* changes
* change
* add changeset
* Fix reload test
* Update js/_website/src/lib/templates/python-client/gradio_client/03_using-zero-gpu-spaces.svx
Co-authored-by: hysts <hysts@users.noreply.github.com>
* Update js/_website/src/lib/templates/python-client/gradio_client/03_using-zero-gpu-spaces.svx
Co-authored-by: hysts <hysts@users.noreply.github.com>
* changes
* changes
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: hysts <hysts@users.noreply.github.com>
* fix: Add WebP MIME type support for image file validation (#12206)
* fix: Add explicit WebP MIME type support for image file validation
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Move `theme`, `css`, `css_paths`, `js`, `head`, `head_paths` to `launch()` (#12151)
* move params
* moving params
* add changeset
* Fixed some demos
* fix utils
* fix demo
* fixes
* remove log
* small fixes
* fixes
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* new cache
* Fix
* Notebook
* test fixes
* test fixes
* more test fixes
* test action
* revert action
---------
Co-authored-by: Hannah <hannahblair@users.noreply.github.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: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: hysts <hysts@users.noreply.github.com>
Co-authored-by: devasadhu <devasadhu10@gmail.com>
* [Client] Fix ZeroGPU headers forwarding (#12243)
* [Client] Fix ZeroGPU headers forwarding
* add changeset
* changes
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* 🌙 Add dark mode to gradio docs (#12106)
* dark mode docs!!!
* add changeset
* change footer
* add changeset
* cleanup
* format
* add matchmedia fallback
* clean up
* tweak
* tweak search modal in dark mode
* more dark mode fixes
* format
* add changeset
* Update navbar design in website docs (#12152)
* update desktop nav bar
* format
* light mode dropdown
* dark target fix
* tweak
* tweak
* fix
* format
* update pnpm
* test
* revert
* fix demos on landing page
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Change gr.Toast expanded to true by default (#12291)
* change expanded to true
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix reload mode tests (#12295)
* Fix reload mode tests
* add changeset
* Fix blocks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix
* Copy as markdown button in API docs (#12168)
* changes
* changes
* changes
* refactor
* formatting
* cleanup
* add changeset
* fix bug with unnamed non public endpoints
* uniform copy buttons, and checkmark
* switch to lang specific copy buttons
* convert button to dropdown
* add open in huggingchat
* format and lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Allow serving Gradio MCP apps as ChatGPT apps as well (#12268)
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Svelte5 migration (#12114)
* changes
* fix things
* changes
* change
* change
* clean
* Upgrade ColorPicker to Svelte5 (#12115)
* Fix
* fix
---------
Co-authored-by: pngwn <hello@pngwn.io>
* Upgrade Checkbox, CheckboxGroup, Markdown to Svelte 5 (#12116)
* fix
* fix
* Remove comment
* Migrate Dropdown to svelte5 (#12119)
* Fix
* Fix
* Fix
* Fix (#12122)
* migrate slider (#12123)
* Fix (#12125)
* Fix Code Component (#12126)
* Migrate Radio component to Svelte 5 (#12130)
* Upgrade File To Svelte 5 (#12131)
* Upgrade File Component To Svelte 5
* Fix dropdown radio change events
* Fix change events
* migrate image (#12133)
* Fix video (#12134)
* Migrate Gallery (#12135)
* rename (#12136)
* Migrate DateTime (#12137)
* Migrate DownloadButton (#12138)
* Migrate HighlightedText (#12139)
* Migrate Json Component (#12140)
* Migrate Json Component
* Remove inspect
* migrate number component (#12141)
* Migrate UploadButton (#12142)
* Migrate Model3D (#12143)
* Migrate Timer (#12145)
* Migreate Timer
* remove console.log
* Migrate FileExplorer (#12146)
* ParamViewer (#12147)
* Migrate ImageSlider (#12148)
* Migrate NavBar and SideBar (#12149)
* SimpleComponents (#12150)
* Migrate Draggable (#12154)
* Draggable
* Add types
* Add code (#12155)
* Fix css variables (#12161)
* Misc fixes (#12165)
* fix things (#12166)
* Try to fix
* format + merge 6.0 dev branch
* add changeset
* Fix
* Fix
* Fix
* Fix
* Fix build for now
* fix docstring
* here we go again 😮💨
* Fix tests
* Fix
* V5 rerender (#12170)
* almost
* fix
* fix
* more fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix i18n in Svelte 5 Branch (#12177)
* Support i18n in svelte 5 branch
* Fix i18n
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix (#12179)
* Fix success failure event triggers (#12180)
* Fix
* Fix sucess failure triggers
* Fix
* Fix radio change/input events (#12182)
* Fix Chatbot Editing (#12183)
* fix spa build (#12186)
* fix loading statuses (#12185)
* Fix chatbot multimodal (#12187)
* Fixing
* Add code
* Fix JSON Component (#12188)
* Fix gallery clear event (#12189)
* Fix Gallery Clear Event
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix image component events (#12190)
* Fix Gallery Clear Event
* Fix Image Component Events
* Fix example loading (#12192)
* Fix
* Fix
* Fix Example Label (#12193)
* Add back app footer + Dispatch load events (#12181)
* Fix
* Fix
* add changeset
* fix load events/ state settling
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* fix moast toasts (#12195)
* fix
* fix
* Formatting svelte 5 branch (#12197)
* Fix loading status for SPA (#12196)
* Fix Loading status
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Trigger ID (#12199)
* .then events were being triggered twice (#12207)
* Fix Image Updates (#12208)
* Fix Weird Issues With SPA (#12209)
* Fix Weird Issues With SPA
* Fix devDependencies
* Fix
* Fix chatbot streaming (#12211)
* Fix Weird Issues With SPA
* Fix devDependencies
* Fix
* Fix MultimodalImage props
* quick fix (#12210)
* Fix Thought in Chatbot for Svelte 5 (#12231)
* Fix Gallery + Video test (#12235)
* Fix Video input output in svelte 5 (#12236)
* Fix Video Payload
* Fix
* audio fix (#12204)
* Fix ChatInterface Rapid Generation (#12232)
* Fix Code (#12233)
* Fix website build in svelte5 (#12241)
* pin to different commit
* just pass version
* pin action version to 10.17.0
* Fix button issue in gr.MultimodalTextbox (#12200)
* change button to div
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Toast Content checking (#12242)
* S5 streaming (#12244)
* pending inputs (#12252)
* change
* sd
* fix
* Fix clear button loading status (#12259)
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Loading Status Fixes: Validation Errors + Making Errors Clearable (#12261)
* Make error status clickable
* add changeset
* Fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Chatbot Model3d loading (#12266)
* Fix (#12269)
* Fix (#12270)
* Fix render tests (#12271)
* WIP
* Fix Render
* remove console.log
* Fix Render Merge test
* Lint
* Fix Tabs (#12272)
* Fix code (#12273)
* Small video tweak (#12274)
* Fix API Recorder (#12277)
* Fix accordion svelte 5 (#12279)
* Fix API Recorder
* Fix Accordion Svelte 5
* Fix ImageEditor Svelte 5 (#12278)
* .
* Format
---------
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix DeepLink in Svelte5 (#12281)
* Fix DeepLink
* Fix Loading States
* Add code
* Audio Debugger
* Fix file explorer test svelte 5 (#12282)
* Fix FileExplorer e2e test
* Fix DeepLink in Svelte5 (#12281)
* Fix DeepLink
* Fix Loading States
* Add code
* Audio Debugger
* Fixes to visibility in svelte 5 (#12283)
* Push
* Fix
* Add comment explaining test
* Fix TodoList e2e test (#12287)
* Async rendering fix
* MountComponents
* Fix theme builder (#12292)
* Async rendering fix
* MountComponents
* Ugly WIP
* Revert
* Revert
* Fix theme builder
* remove logs
* Fix
* Fix lint
* changes (#12288)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix theme builder
---------
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
* Preload examples by default if input components don't already have a developer-provided `value` (#12294)
* changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* remove other changesets from svelte 5 branch
* Changeset V5 (#12298)
* Fix
* Let's see if this works (#12300)
* chore: update versions (dev) (#12111)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix node
* Fix
* Fix
* Fix error toast type definition for exception handling (#12302)
* handle value errors
* error type fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix python unit tests (#12303)
* Fix python unit tests
* add changeset
* Fix
* delete changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Dropdown filtered indices bug (#12304)
* Fix
* add changeset
* Fix label issue
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix textbox updates (#12306)
* Fix
* add changeset
* Fix label issue
* Fix code
* add changeset
* Remove changeset
* add changeset
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add back default values for labels (#12305)
* Fix
* add changeset
* Fix label issue
* Add back default labels
* add changeset
* Format
* Fix default value for number
* add changeset
* Add back default labels
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix bug where Textbox change/input events triggers automatically when component mounts (#12317)
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Dropdown filtered_indices_problem for real (#12316)
* Fix tests
* add changeset
* Try again
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix website to work with svelte 5 (#12318)
* working
* use tailwind 3 instead
* changes
* formatting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* proxy fix
* S5 df take3 (#12321)
* fix
* fix
* add changeset
* Fix
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Migrate non-native plots to svelte 5 (#12307)
* changes
* add changeset
* change
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Migrate gr.HTML to svelte 5 (#12315)
* 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 Publish action (#12323)
* Fix (#12301)
* Fix Publish action
* Trigger creation of dev release pr (#12324)
* Trigger dev release pr
* This is the version
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improving performance of queue, especially for MCP (#12296)
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes'
* changes
* changes
* changes
* changes
* changes
* revert changes to demo
* changes
* changes
* changes
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix changesets? (#12326)
* Fix
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Quick fix: js client test fix (#12319)
* test fix
* workflow
* Remove lite across website and use embedded spaces (#12325)
* changes
* formatting
* add changeset
* remove
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* changesets (#12329)
* Change `gr.Dataframe` component constructor parameters (#12330)
* Redesign Dataframe API: Replace tuple-based row_count/col_count with explicit limits
- Replace row_count: tuple[int, str] with row_count: int and row_limits: tuple[int | None, int | None]
- Replace col_count: tuple[int, str] with column_count: int and column_limits: tuple[int | None, int | None]
- Simplifies API by separating initial count from min/max constraints
- Removes awkward 'fixed'/'dynamic' string parameters
- Allows independent control of initial size and limits
* add changeset
* add changeset
* changes
* changes
* changes
* changes
* add changeset
* Update demos and tests to use new Dataframe API
- Replace col_count with column_count and column_limits
- Replace row_count tuples with row_count and row_limits
- Update all demos: blocks_outputs, filter_records, matrix_transpose, sort_records, dataframe_colorful
- Fix gradio/external.py Dataframe instantiation
- Update test_dataframe.py to test new API parameters
* changes
* clean
* changes
* changes
* nb
* changes
* changes
* fix"
tmeplates
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Undo in Audio component (#12327)
* audio fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Use beefier runners for e2e tests (#12332)
* Use beefier runners
* Fix
* trigger ci
* LFG
* Be able to update visibility programmatically (#12320)
* Fix?
* add changeset
* Fix code
* Fix
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (dev) (#12331)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix statustracker for generating outputs (#12337)
* Fix number status
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* clean up some console logs (#12336)
* changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix dropdown filtering (#12344)
* fix audio_subtitle demo
* demo tweaks
* clean
* Fix json postprocessing with queue=False (#12343)
* Fix status
* add changeset
* Fix queue false
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix colopicker (#12360)
* fix colopicker
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* fix input (#12359)
* fix input
* format
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix various event issues (#12357)
* fix slider
* fix code
* fix code
* fix dataframe events
* fix checkbox group
* clean
* add changeset
* Fix build
* Fix color picker
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* chore: update versions (dev) (#12342)
* Fix status tracker iterative image (#12358)
* Fix dropdown filtering
* Fix
* add changeset
* Fix issue finally for real
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Chatbot autoscroll (#12372)
* fix chatbot scroll
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Ensure `show_error` is always respected (#12374)
* Fix queue false render issue (#12363)
* Fix render with queue=false issue
* Add file
* add changeset
* Fix test
* Fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix audio errors when streaming (#12373)
* Fix Walkthrough component (#12371)
* fix walkthrough
* clean
* clean
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix progress in StatusTracker (#12370)
* fix progress component
* format
* add changeset
* Update js/statustracker/static/index.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Fix some e2e tests (#12378)
* Fix
* Fix code
* add changeset
* Revert
* Fix tests
* Fix
* add changeset
* Fix
* timeout
* Fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Spaces hot reloading (#11821)
* jurigged hot-reload
* Continue
* More conventional TypeVar naming
* add changeset
* Fix Watcher creation
* Auto demo name
* Make auto-demo name overridable
* Single-file jurigged server reloader
* Not needed
* ruff check --fix
* ruff format
* Spaces reloading
* add changeset
* Add requests package to requirements
* Ruff
* Fix some ty errors
* noqa: I001
* Ruff
* Fix
* Remove requests from requirements.txt
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* fix font (#12375)
* fix font
* add changeset
* tweaks
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix Reload Mode in 6.0 (#12383)
* Fix but ugly
* add changeset
* Remove console.log
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix cache keys (#12388)
* Improve audio player UI in gr.Chatbot (#12102)
* update wavesurfer
* Add minimal audio player to audio component
* Add minimal audio player to audio component
* add changeset
* update button panel
* tweak
* format
* Merge remote-tracking branch 'origin/6.0-dev' into minimal-audio-player
* spacing
* fix button position on other components in the chatbot
* add changeset
* fix tests
* fix test
* fix test
* fix test
* fix liked test
* format
* test tweak
* add await
* test id fix
* tweak
* label fix
* test fix
* test tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
* Fix custom css e2e test in SSR (#12390)
* Fix test
* Fix test
* Tweak
* merge
* Fix pkg (#12395)
* fix pkg + publish
* fix pkg + publish
* Reduce files in build (#12391)
* Reduce files in build
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Download frontend templates for custom components (#12389)
* empty
* Change token
* Fix code
* Fix
* add changeset
* Fix
* Remove version pin
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* multimodal textbox recorder
* fix custom components (#12397)
* fix
* clean
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Revert "multimodal textbox recorder"
This reverts commit
|
||
|
|
3f8ea13a8c | remove lite (#11858) | ||
|
|
379f0c1519 |
Support MCP resources and prompts (#11723)
* changes * add changeset * changes * changes * simplify * revert * clean * changes * add in schema * changes * changes * client changes * fix utils * changes * add changeset * notebooks * changes * fix * changes * reorg * changes * changes * fix tests * format * add changeset * fix imports * changes * add fastmcp * try catch * changes' * notebooks * done * hangle images * format * docs * mcp * required param for promptargument --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
8fd8ccdd63 |
Switch from pyright to ty (#11731)
* changes * Update scripts/type_check_backend.bat * Update pyproject.toml * changes * changes * notebooks * changes * notebooks * add changeset * more ignores * remaining * fix context * lint * more fixes * fix * try again * scripts --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
c207de96f8 |
Build the Gradio wheel for Lite before packaging (#11157)
* Build the Gradio wheel for Lite with the 'pyodide py-compile' command before packaging * add changeset * Call the pyodide py-compile command from a hatch build hook * Install pyodide-build in CI * [TMP] Run install_deps step on this branch * Fix npm command * Revert "[TMP] Run install_deps step on this branch" This reverts commit 9d4e7e499cf09b10124da3fb5c095ddcfbfa9c8e. --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
4272421c3e |
Adding requirements for mcp (#11096)
* changes * changes * changes |
||
|
|
b42f35e3a4 |
chore: log tested Python version (#11062)
* chore: test with Python 3.10 - 3.13 * Reduce the test matrix to 3.10 again because tests are too slow, but keep logging the actual version in preparation of the next bump * Upon request remove all test improvements --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
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> |
||
|
|
5f03649668 |
Let Gradio be typed! (#10167)
* py.typed * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
6f95286337 |
5.0 dev -> main (#8843)
* enter pre-release mode * Remove deprecated parameters and classes for the 5.0 release (#8797) * 5.0 * add changeset * deprecate more * add changeset * lint * Update rotten-bears-bathe.md * Update icy-clocks-juggle.md * changes * Delete .changeset/icy-clocks-juggle.md * every * more deprecation * deprecate inits * fix * fix func * fix some tests * format * fix more tests * fixes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fix (#8830) * fix * Prevent invalid values from being submitted to dropdown, etc. (#8810) * prevent invalid values * error * add changeset * component * add tests * fix tests * spec ts * format --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fixes * Remove manual ip address check and launch counter (#8884) * changes * add changeset * hash * changes * remove * changes * rename * internal * changes * remove json path * merge * fix tests --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Remove deprecated documentation (#8940) * remove logoutbutton page * remove huggingfacedatasetsaver * Use HTTP Livestreaming for audio/video streaming out (#8906) * HTTP live streaming * type check * fix code * Fix code * add code * Video demo * Fix tests * Update notebook * Add guide * Fix demo * Allow downloading * revert * Fix download filename * lint * notebooks * fix video demo * Fix config * Fix audio repeated play bug * Improve guide * fix audio? * Use cantina * Code * type check * add code * Use runtimeerror * Add code * Adds `strict_cors` parameter to `launch()` (#8959) * prevent null origin requests by default * changes * add changeset * format --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fi * Streaming out tweaks (#8976) * Tweaks * Better * typo * lint * Improve url downloads for file objects (#8978) * changes * changes * add changeset * add changeset * Ci security tweaks (#9010) * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * change * 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: pngwn <hello@pngwn.io> * merge main (#9050) * lint * Have gr.on set value at start as well (#9065) * changes * changes * changes --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> * No token passed by default in `gr.load()` (#9069) * changes * add changeset * docstring * change * client changess --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * changes * Set default `format` in `gr.Audio` to be `None` to avoid unnecessary preprocessing (#9073) * audio format * add changeset * lint * docstring * format * fix tests * tweaks * refactor * fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Streaming inputs for 5.0 (#8941) * Fix code * Add code * Add code * working demo * hacky video * Add code for video * Fixing some code * clean queieing * low streaming mode audio * reworking * remove console * Pretty good spot * Delete unused * consolidate * Add progress bar * Set time limit null * delete * Fix then issue * merge out * Add code * clean up * Remove base64 * Add code * minor bugs * End stream * Fix rerender * remove unwanted * Address streaming comments * Commit file lol * ;int * lint backend * lint * Fix queue status. Stream_every defined in event * Fix types * Add code * Add code * Add code * queue time * docstring wording * Fix typo * add changeset --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * 3.10 (#9133) * Deprecate passing a tuple for gr.Code value (#9132) * Add code * add changeset * lint * type check --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Postprocess hardening (#9122) * hardenning * Fix code * add changeset * Fix tests * add test fuzzer * Clean up * revert * Fix * Add code --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Drop python 3.8 and 3.9 (#9140) * drop support for python 3.8 and 3.9 * add changeset * format * changes * add changeset * changes * add changeset * changes * 3.10 * string * tweak * tweak * changes * changes * format * more tweaks * update actions * website docs build * fix func tests * rev req * test fix * remove ruff rule for zip strict --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Raise WasmUnsupportedError for ffmpeg usage on Lite (#9130) * Raise WasmUnsupportedError for ffmpeg usage on Lite * add changeset * add changeset * Add WasmUnsupportedError in Audio._convert_to_adts * Add WasmUnsupportedError in processing_utils.audio_to_file * Fix * Raise WasmUnsupportedError from processing_utils.audio_from_file * empty commit --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Video gallery (#9052) * video support * tests and backend changes * undo main merge * upload fix * Revert "undo main merge" This reverts commit e2a26e6d28772587dadce2bb00c3581f97883664. * type fixes * format * pr fixes * Update gradio/components/gallery.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Update gradio/components/gallery.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * type fix * thumbnails * thumbnail type * remove thumbnail generation * add changeset * test fixes * test fixes * python test fix * python test fixc * fix * fix * story fix --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Open audio/image input stream only when queue is ready (#9149) * fix * submit logic happens in Blocks * add changeset * trigger ci * trigger ci * Add code * Add code * Fix retrigger refactor * Add code --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * trigger ci * update (#9176) * File access security guide (#9156) * first draft Add code Add code Add code emphasis * suggestions * redirects * add changeset * trigger ci * typos --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fix guide * Fix notebook (#9181) * DNS resolver on ip check (#9150) * changes * changes * add changeset * chaanges * changes * changes * changes * changes * add caching and whitelist * remove hf.space --------- 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> * Change dark mode color theme from `gray` to `zinc` (#9175) * use zinc as neutral colour * add changeset * fix test * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Streaming Guides (#9173) * Fix unified case * commit * Add code * add changeset * notebook * Lint * delete * Fix code * fix tests * File access security guide (#9156) * first draft Add code Add code Add code emphasis * suggestions * redirects * add changeset * trigger ci * typos --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * redirect * typos * link * fix * See what the problem is * less time * fix * try again with busted cache * try again * Code * Demo and code --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: pngwn <hello@pngwn.io> * Fix (#9215) * Deprecate type='tuples for chatbot and focus chatbot docs on 'messages' type (#9194) * Remove grey background behind all components (#9213) * remove panel padding and border * add changeset * revert radius change * add changeset * format * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * changes * changes * Revert "changes" This reverts commit |
||
|
|
5622331da7 |
Extend pyright to cover tests as well (#8856)
* add type to test * ignore certain demos * notebooks * type test_video * more typing * more typing * more typing * add changeset * more typing * more * more * files * ds * ds * plots * audio push * annotated * utils * routes * iface * server * restore * external * dep * components * chat interface * fixes * blocks * blocks * blocks * blocks * fixes * fixes * format * fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
d1f044145a |
Use covariant container types across the codebase and add typing to our demos (#8854)
* more typing * add changeset * tweaks * more changes * more fixes * more changes * more fixes * more fixes * delete * add changeset * notebooks * restore * restore * format * add changeset * more typing fixes * fixes * change * fixes * fix * format * more fixes * fixes * fixes for python3.9 * demo * fix * fixes * fix typo * type * formatting * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: aliabd <ali.si3luwa@gmail.com> |
||
|
|
0d76169e46 |
upgrade pyright==1.1.372 (#8837)
* upgrade typing * more fixes * add stubs folder * add changeset * fix docstring * docstring * type * fix tests --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
ca125b728a |
Fix reload mode for jupyter notebook and stateful demos (#8599)
* Remove deprecated method * add changeset * Fix bug * Update test * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
c562a3d9a4 |
Cancel server progress from the python client (#8245)
* implementation + test * add changeset * WIP using events * Use /cancel route * Try bumping lite * add changeset * Fix stream closing issue --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
611c9273a3 |
Lite wheel optimization (#7855)
* Add `pull_request.branches.main` as a trigger of the `publish` workflow * [WIP] Comment out the publish steps * Package and upload the NPM package for debug * Skip the copy_frontend.py hook in the Lite build * add changeset * [WIP] Show gradio files * [WIP] Show gradio files * Comment out installing the gradio and gradio_client libraries * Restore installing gradio_client because it's used by `python js/_website/generate_jsons/generate.py` that follows * Restore installing gradio because it's used by `python js/_website/generate_jsons/generate.py` that follows * Add code * Revert "[WIP] Show gradio files" This reverts commit e15fef29bd14671576e64d94d3b844786ebe7e83. * Build the gradio wheel with the custom lite target * add changeset * Revert "[WIP] Show gradio files" This reverts commit aef053f9caad203c7e1bbfa15e9f9e536f77442a. * Revert "Skip the copy_frontend.py hook in the Lite build" This reverts commit ca296d0e4e169adbb6af3705561869aa8c9037b7. * Update .github/actions/install-frontend-deps/action.yml for hatch installation * [WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch * Revert "[WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch" This reverts commit 571823b4a05f7e41e0b3731d51c5bd86b2e17ddc. * Comment-in lines in publish.yml * Move Lite build from publish.yml to deploy-spaces.yml * Use the build_lite option of install-all-deps instead of running the build command * [TMP] Change the branch of action files * Fix the hatch Lite build setting * Return pnpm pack to deploy-space * Revert "[TMP] Change the branch of action files" This reverts commit fe4e1c8f210eb21ac7ee1bd4b219d35e1ae84c85. * Remove dependencies for lite build * [TMP] Change the branch of action files * Revert "Remove dependencies for lite build" This reverts commit 856a858c1f49d736bfeb056ba0ec7e9bc35af29c. * Install packaging>=23.2 * [TMP] Show packaging version * Fix pip install * Fix * Uninstall packaging once * Use `pip install -U` instead of uninstalling the exiting version * Revert "[TMP] Show packaging version" This reverts commit 910b6bbde3dc8777c051bd5576813913d57959f7. * Add `-U` flag * Set packaging version as >=23.2 * Revert the changes on pip install * Set packaging version as >=23.2 in requirements.txt * Revert "Set packaging version as >=23.2" This reverts commit 8aa77c8930815e69d7256886cad88b6da8361069. * Fix hook name * Revert "Set packaging version as >=23.2 in requirements.txt" This reverts commit fbd605cbfb5d06706eacc0648a2e9d7816c9de1f. * Revert "Revert the changes on pip install" This reverts commit 81ff38a660635fce9cb17862a2072e4d169c3466. * Add comments * Revert "[TMP] Change the branch of action files" This reverts commit 0d6aa48d75a842db9b3987212deffedb0c0ca51d. * Revert the trigger of .github/workflows/deploy-spaces.yml * Remove unused `node_auth_token` and `npm_token` inputs from the `install-all-deps` action * [TMP] Trigger CI based on this PR * Remove packging installation * Revert "Remove packging installation" This reverts commit 4a4f18de3a78220150bc614f574a5a808454cd12. * Revert "[TMP] Trigger CI based on this PR" This reverts commit 6cea830c8e9f853c612c7286cba68027b5262b3b. --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> |
||
|
|
ddd4d3e4d3 |
Reverts the revert that dropped changes from 2 PRs (#7495)
* Revert "Revert "changes""
This reverts commit
|
||
|
|
032435368d |
Revert "changes"
This reverts commit |
||
|
|
17b6840887 |
Enable Ruff S101 (#7477)
* Update to Ruff 0.2.2 * Enable Ruff S101; don't use asserts in runtime code, or AssertionErrors for flow control |
||
|
|
7e9b206a14 |
Stop using deprecated pydantic config class and filter gradio warnings from tests (#7333)
* Warnings filter * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: pngwn <hello@pngwn.io> |
||
|
|
05d8a3c803 |
Update ruff to 0.1.13, enable more rules, fix issues (#7061)
* add changeset * Update ruff to version 0.1.13 * Correct ruff target version * Enable more Ruff rules and fix issues * Enable ARG and fix issues * Enable PL lints, fix issues --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
4cfd8dcde8 |
Make ci work (#7233)
* update ci * test * test * test * test * test * test * test * test * editable install * editable install * escape backslashes for bash * escape backslashes for bash * only generate website json in linux * that was stupiud * check ci still works * please work * pretty please? * errr * now? * more * more * more * deploy space * deploy space * tweaks * changes * tweaks * tweaks * tweaks * tweaks * tweaks * final tweaks --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
60078df07f |
Fix test requirements to be compatible with python 3.11 (#7225)
* stash pop * lint fix * add changeset * changes * add changeset * exclude * fix * tokenizers, transformers fix * changes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
7bb561a294 |
Rewriting parts of the README and getting started guides for 4.0 (#6767)
* doc rewrite * changes * changes * tip * changes * notebook * add changeset * history * add * quickstart done * readme * changes * quickstart * changes * reorder * link * changes * changes * changes * quickstart done * readme * quickstart * quickstart' * moving around * spaces * readme * guides * guides * links * readme * readme * readme * readme * readme * readme * readme * readme * readme * readme * email address * add changeset * shorten quickstart * readme * Update README.md * readme * changes * Update guides/01_getting-started/01_quickstart.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/01_getting-started/01_quickstart.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/01_getting-started/01_quickstart.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * changes * changes * remove gr.Interface.load * guides * changes * more changes * changes * sharing * concurrency * changes * changes * components * key features * event listeners * features * notebook * test * guides * changes * changes * changes * transitions * readme links * links * links * guides * new gif * add gif * update gif * Update guides/02_building-interfaces/01_more-on-examples.md * Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md * Update guides/01_getting-started/01_quickstart.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/01_getting-started/02_key-features.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/01_getting-started/02_key-features.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/02_building-interfaces/00_the-interface-class.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/01_getting-started/01_quickstart.md Co-authored-by: Hannah <hannahblair@users.noreply.github.com> * Update guides/01_getting-started/02_key-features.md Co-authored-by: Hannah <hannahblair@users.noreply.github.com> * Update guides/01_getting-started/02_key-features.md Co-authored-by: Hannah <hannahblair@users.noreply.github.com> * changes * replace space * changes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> Co-authored-by: Hannah <hannahblair@users.noreply.github.com> |
||
|
|
179f5bcde1 |
Add py.typed to gradio backend (#6455)
* comment out classes in templates TWICE see https://github.com/gradio-app/gradio/issues/6396 for details * add py.typed to hatch artifacts * add py.typed to gitignore * create py.typed in type_check_backend * add changeset * add changeset --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
287fe67828 |
Version 4 development branch (#5498)
deploy to chromatic / get-current-pr (push) Has been cancelled
deploy to chromatic / comment-chromatic-end (push) Has been cancelled
deploy to chromatic / comment-chromatic-fail (push) Has been cancelled
deploy to chromatic / comment-chromatic-start (push) Has been cancelled
deploy to chromatic / chromatic-deployment (push) Has been cancelled
* squash commit * BugFix: Make FileExplorer Component Templateable (#5933) * Make FileExplorer templateable * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix notebooks (#5935) * V4: Update Component pyi file (#5937) * Add code * add changeset * delete --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Use beta release versions for '@gradio' packages (#5938) * Fix versions * add changeset * fix * add changeset * fix * add changeset * Fix * fix preview * add changeset * final fix * add changeset * fix * add changeset * fix * add changeset * revert change --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * maybe fix (#5946) * Merge main again (#5948) * maybe fix * fix * Merge main again (#5949) * maybe fix * fix * weird weird weird * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Merge main again (#5950) * maybe fix * fix * weird weird weird * fix * log * log * fix changesets * rererefactor frontend files (#5960) * do all the things * add changeset * remove codemod * fix * change casing * condense upload button --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Strip vite import warning (#5962) * Add code * Remove comment * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5769) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * release wasm (#5963) * release wasm * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Wasm release (#5964) * release wasm * release wasm * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5965) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Add json schema unit tests (#5970) * Add tests * add changeset * Fix tests * api-info * Add test * Add test * Add email tests * 3.8 fix 🙄 --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Simple textbox (#5990) * Simple textbox * add changeset * Trim down events * Trim * Clean up change event * Add comment --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * File upload optimization (#5961) * Use custom multipart parser * add changeset * remove print * Add comment * Lint * fix code * remove print --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Removes deprecated arguments and parameters from v4 (#5968) * Removes deprecated arguments and methods for v4 * remove update * style * add changeset * added params * typign * fixed all of the typing * tests * fix layouts * layout * fix config * fix * fix form * fix * fix blocks tests * fix some more tests * lint * fix test routes * doc * notebooks * remove doc * format * format * remove group * label docstring * remov test --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Simple dropdown (#5996) * Add code * lint * comment * add changeset * revert * Fix update + docstring cleanup * Add code --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * pass props to example components and to example outputs (#6014) * pass props to example components and to example outputs * add changeset * make util less egenric/ more useful * fix demo * fix demo * fix * fix test * Fix test --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> * Format js in v4 branch (#6016) * Format v4 branch js * add changeset * lint --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Fix component update bug (#6027) * Fix tests + bugs * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * lockfile update * Fixing test * fix test * Add a cli command to list available templates (#6018) * Add code * dataset * Add test * add changeset * add changeset * add changeset * add changeset * Exclude FormComponent * Paginate the output * No colors but emojis: --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fix tests (#6046) * fix storybook (#6065) * fix storybook * add changeset * fix * add changeset * fix * fix * fix components * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * remove dupe component (#6067) * remove dupe component * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Simplify File Component (#6044) * Add code * Add code * Add code * Reuse code UploadButton * Use two files for UploadButton * Address feedback * Lint * add changeset * Update js/uploadbutton/shared/UploadButton.svelte Co-authored-by: pngwn <hello@pngwn.io> --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: pngwn <hello@pngwn.io> * Clean up backend of `File` and `UploadButton` and change the return type of `preprocess()` from TemporaryFIle to string filepath (#6060) * changes * add changeset * upload button * file * add changeset * valid types * fix tests * address review --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix Dropdown Example component and example processing logic (#6075) * fix examples * helpers * dropdown * fix cc build (#6079) * fix cc build * add changeset * throw error if build fails * fix entry points * add changeset * fix lockfile * Add test * update workflow * try resolve * lint 🙄 * Use xfail --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> * Fixes markdown rendering in examples (#6071) * Fixes markdown rendering in examples * add changeset * update delimiters * format * format * docstrings * test --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Proposal: sample demo for custom components should be a `gr.Interface` (#6077) * update sample demo to interface * add changeset * modify * Update gradio/cli/commands/components/_create_utils.py Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com> * added layout and static * fix * refine --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com> * WIP: Fix docs (#6082) * Website fix * add changeset * Fix code * pin version * Add code * skip code --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Pending events behavior (#5826) * enter changesets pre-release mode * release first version (#5500) * release packages * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fix changeset (#5502) * add changeset * release first version * Custom components (#5507) * Add flag * Copy front-end * Add backend code * Remove breakpoint * Fix init * Add code * File reorg * Fix types * Upload files * Fix code * Custom components * Add code * Client changes * More changes * Add code * Add code * Fix reversion * build hook integration * Add code * rm file * Add code * rename cli * Add code * Nicer cli * Add display class * Add backend devmide * Add code? * Add code * Add paths and fix reload mdoe * Fix .then * changes * fix * fix * changes * changes * changes * Fix versions * Fix wheel build from source * Add code * Get no template case working * Cc fe (#5509) * tweaks * fix 18n * fix 18n * tweaks * Change name --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> * Do not use live display for dev mode * Clean up front-end server print statements a little bit * Fix success event * Cc fe 2 (#5526) * tweaks * fix examples * fix backend port * fix things * fix * Fix json component flagging * fix * fuix --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> * Fix template (#5533) * Fix type hint (#5536) * fix custom components when installed from wheel (#5552) * Fix all demos custom components (#5555) * Fix all_demos * Fix issues * trigger ci * add changeset * Fix merge * lockfile * Add code * add code * Fix command * Add code * Fix highlighted text * fix interactive highlighted text * tweak ci * Disable example caching for load right now --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * image fixes (#5589) * Add flag * Copy front-end * Add backend code * Remove breakpoint * Fix init * Add code * File reorg * Fix types * Upload files * Fix code * Custom components * Add code * Client changes * More changes * Add code * Add code * Fix reversion * build hook integration * Add code * rm file * Add code * rename cli * Add code * Nicer cli * Add display class * Add backend devmide * Add code? * Add code * Add paths and fix reload mdoe * Fix .then * changes * fix * fix * changes * changes * changes * Fix versions * Fix wheel build from source * Add code * Get no template case working * Cc fe (#5509) * tweaks * fix 18n * fix 18n * tweaks * Change name --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> * Do not use live display for dev mode * Clean up front-end server print statements a little bit * Fix success event * Cc fe 2 (#5526) * tweaks * fix examples * fix backend port * fix things * fix * Fix json component flagging * fix * fuix --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> * Fix template (#5533) * Fix type hint (#5536) * fix custom components when installed from wheel (#5552) * Fix all demos custom components (#5555) * Fix all_demos * Fix issues * trigger ci * add changeset * Fix merge * lockfile * Add code * add code * Fix command * Add code * Fix highlighted text * fix interactive highlighted text * tweak ci * fix image uploads * add changeset * remove changeset * add changeset --------- Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Support Literal Typehints (#5591) * Fix updateable * Deploy for failing actions * fix enum * Add code * remove gradio lite from publish ci * fix * fix * chore: update versions (beta) (#5501) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix js deps in cli and add gradio-preview artifacts to build (#5610) * Fix js dependencies in cli * Add preview to build command * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5612) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * backend linting (#5613) * backend linting * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Publish js theme (#5615) * Publish js theme * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5614) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Add code (#5617) * Add docstring to trigger release (#5618) * Add docstring * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5619) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix build and broken imports (#5620) * fix broken import * fix build scripts * add changeset * Update js/statustracker/static/index.svelte --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5621) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix esbuild (#5624) * fix build * fix build * add changeset * fix build * fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5626) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix esbuild (#5629) * fix build * fix build * add changeset * fix build * fix * asd * more fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * asd (#5630) * chore: update versions (beta) (#5631) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Some minor v4 fixes (#5637) * Add code * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Publish all components to npm (#5648) * Publish image component * publish components * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5638) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix front-end imports + other misc fixes (#5649) * Fix console error * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Add overwrite flag to create command (#5651) * Add overwrite flag to create command * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5650) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Make layout components templateable (#5665) * Split out layouts * Refactor cli * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Patch fixes (#5678) * Handle lowercase template name frontend * Lint * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix build and file route (#5680) * Add code * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5662) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * V4 fix typing (#5686) * Add examples for series and parallel * v4 fix typing * add changeset * Fix * Fix * Fix 3.8 * Fix typing 3.8 * Lint * Add code * Add key * Fix typing * Add code * Fix deps * Fix fastapi * Fix version ' : --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Use overrides (#5695) * Use overrides * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * ensure client is copied along with components (#5709) * ensure client is copied along with components * add changeset * add changeset * chore: update versions (beta) (#5688) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix build config (#5710) * Fix python unit tests for v4 (#5715) * Add code * Fix tests * Add ci * Add code * fix test_blocks * More fixes * Last changes * add changeset * Add code * Continue for the sake of some green ci * Proper api info --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Better test dir check (#5719) * FIx test-dir check * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Use path to npm executable in subprocess (#5736) * Use path to npm in subprocess * Fix dev mode too * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Add Error + test (#5738) * Add Error + test * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix component regex (#5739) * Add code * Fix component regex * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix layout templates (#5740) * Fix templates * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix template remaining components (#5743) * add code * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * --overwrite deletes previous content (#5744) * Add code * Add code * add changeset * Add test --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Support call method (#5751) * Support call method * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix windows ci build (#5752) * Try bash * Use cross-env * Trigger CI * Fix comma * add changeset * Modify lock file * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix windows paths (#5745) * Use posix path * add changeset * add changeset * Try normalize * to_posix v2 * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (beta) (#5717) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Simplify how files are handled in components in 4.0 (#5768) * Client and upload route hash files * Refactor logic * add changeset * Add code * View API fix * Fix client tests * Dumb windows fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix deployed demos on v4 branch (#5770) * Template fixes * add changeset * add changeset * Fix streaming audio * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Name Endpoints if api_name is None (#5782) * Implementation and test * add changeset * fix lint * Fix nits --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * pending events * add changeset * Set api=False for cancel events (#5851) * Set api=False for cancel events * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Set cache dir for some component tests (#5852) * Add code * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Use async version of shutil in upload route (#5853) * Use async shutil copy * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * trigger_mode * changes * undo * undo * add changeset * undo * add changeset * image undo * add changeset * fix merge errors * remove prints * change * fix * fix error * change * quick fix * trigger_mode param * type * value error --------- Co-authored-by: pngwn <hello@pngwn.io> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Fixes: slider bar are too thin on FireFox (#5984) * firefox slider fix * add changeset * fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Fix remaining xfail tests in backend (#6073) * Add code' * Add code * Add code * Fix dataset * add changeset * Add some comments * Add recover_kwargs * Remove from docstring * Audio-to-audio --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix dev mode model3D (#5955) * Fix dev mode * Lint * add changeset * Fix dev mode * Lint * remove console.log * add changeset * interactive fix * Fix tests --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Dawood <dawoodkhan82@gmail.com> * V4: Single-file implementation of form components (#6026) * Checkbox and number * Number, Checkboxgroup, Radio, and Slider * Format * remove range * Refactor checkbox * Forgot to add * Refactor * Lint * add changeset * use rich emoji markup * Fix ts --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Update logos for v4 (#6089) * update v4 logo * add changeset * size * fix on website * fix on demos * add changeset * favicon for demos * margin on footer logo * margin bottom to footer logo --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Add a stand-alone install command and tidy-up the fallback template (#6092) * Add code * add changeset * Add test * Make install default * Better error message --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * V4: Fix constructor_args (#6093) * Fix * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix: Move to cache in init postprocess + Fallback Fixes (#6107) * Add code and test * restore * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fix build (#6112) * fix build * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Update cold-lemons-roll.md * Revert "Update cold-lemons-roll.md" (#6113) This reverts commit |
||
|
|
52f7831751 |
refactor: Use package.json for version management (#5514)
* refactor: Use package.json for version management - uses package.json file for version management. - updated the regex pattern. - removed the logic that creates or updates the version.txt file * load version through package.json * fix code duplication * add changeset * add changeset * fixes * fix * package version * fix * typing * typing * changes * add changeset --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> |
||
|
|
ade93a893e |
fix toml (#5175)
deploy to chromatic / get-current-pr (push) Has been cancelled
deploy to chromatic / chromatic-deployment (push) Has been cancelled
|
||
|
|
947d615db6 |
Sign in with Hugging Face (OAuth support) (#4943)
* first draft * debug * add print * working oauth * inject OAuth profile + enable OAuth when expected + some doc * add changeset * mypy * opt * open in a new tab only from iframe * msg * add changeset * Apply suggestions from code review Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * fix injection + gr.Error * allow third party cookie when possible * add button to sign in/sign out button * feedback changes * oauth as optional dependency * disable login/logout buttons locally * nothing * a bit of documentation * Add tests for Login/Logout buttons * Apply suggestions from code review Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * mention required dependencies * fix package * fix tests * fix windows tests as well * Fake profile on local debug * doc * fix tets * lint * fix test * test buttons * login button fix * lint * fix final tests --------- 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> |
||
|
|
5dba3b2217 |
Run pyright on components directory (#4948)
* apply pyright components * Add code * CHANGELOG * format * Add configuration --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
9787d0284a |
Use tempdir for all python unit tests tests (#4882)
* Use tempdir for all tests * Disable telemetry automaticall for client * Use configuration * Push js * Final comments * Undo change |
||
|
|
afcc20801e |
Deprecate python 3.7 (#4484)
* Remove versions from 3.7 * CHANGELOG * from typing import Literal * Remaning places 3.7 * Last few spots * Use 3.8 in lint |
||
|
|
feeb509537 |
Add pypi classifiers to pyproject.toml (#4383)
* Add pypi classifiers to pyproject.toml * Add OS classifier --------- Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com> |
||
|
|
114f4b4296 |
Push to spaces (#4033)
* changes * first commit * Update gradio/upload.py Co-authored-by: Aarni Koskela <akx@iki.fi> * Update gradio/upload.py Co-authored-by: Aarni Koskela <akx@iki.fi> * changes * changes * changes * changes * changes * changes * changes * chnages * changes * changes * changes * changes * Update 03_sharing-your-app.md * changes * changes * change * changes * changes * changes * Update gradio/deploy_space.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * changes * changes * changes --------- Co-authored-by: Aarni Koskela <akx@iki.fi> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
0fc0e468cc |
Programmatically launch reload to allow factories and arguments to be passed to the app (#4119)
* Programmatically lauch reload to allow factories and arguments to be passed to the app * add warning * modify warning * guide fixes * formatting * changes * warning * import fix * fix tests * fix tests --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
d1853625fd |
More Ruff rules (#4038)
* Bump ruff to 0.0.264 * Enable Ruff Naming rules and fix most errors * Move `clean_html` to utils (to fix an N lint error) * Changelog * Clean up possibly leaking file handles * Enable and autofix Ruff SIM * Fix remaining Ruff SIMs * Enable and autofix Ruff UP issues * Fix misordered import from #4048 * Fix bare except from #4048 --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
12a97746ff |
Ruff update + strictening (#3979)
* Update ruff to 0.0.263
* Get rid of bare except:s
* Fix two Ruff E731s by moving expand_{color,size} to the relevant classes
* Fix Ruff E731 and some variable shadowing in theme builder
* Fix remaining Ruff E731s
* Get rid of unused Ruff ignores
* Fix ruff B904 issues (raise from)
* Fix Ruff B007: loop-control variable not used
* Fix Ruff B011 (do not assert false)
* Remove unused args and kwargs from Progress.tqdm() (spotted via Ruff B026)
* Fix mutable argument default in CheckboxGroup
* Noqa ABC-related lint warnings for Interpretable
* Add missed assert in test_queueing (ruff B015)
* Enable ruff B
* Enable ruff C and fix issues
* Add changelog
* Add UP03[012] after #3984
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
|
||
|
|
ef3862e075 |
Switch linting to Ruff (#3710)
* Sort requirements.in * Switch flake8 + isort to ruff * Apply ruff import order fixes * Fix ruff complaints in demo/ * Fix ruff complaints in test/ * Use `x is not y`, not `not x is y` * Remove unused listdir from website generator * Clean up duplicate dict keys * Add changelog entry * Clean up unused imports (except in gradio/__init__.py) * add space --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
8ec2b0b98a |
Sharing themes (#3428)
* Rebase * Remove build hooks * Working implementation * Add semver + unit tests * CHANGELOG * Add to docs * Rename push_to_hub and fix typos * Fix gallery * Fix typo * Address comments + tests * Update gradio/themes/app.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Import Base as Theme. Use DefaultTheme() as fallback * Fix types * Make version and token truly optional * Add version dropdown + tests * trigger * Support private themes and org_names * Fix org_name typo * Update wheel * Fix font loading and dumping * fixing tests * fix tests * formatting * version * remove requirements * remove requirements * formatting * fix tests --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
|
|
f43481c18a |
Update package metadata (#2226)
* Update package metadata * address review |