Abubakar Abid
0e125d7bef
Trigger click event from gr.DownloadButton
even when no file is present ( #7862 )
...
* trigger click event download button
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 20:16:01 +00:00
Dawood Khan
8d7b3caebd
Multimodal Textbox Loading + other fixes ( #7848 )
...
* submit button icon
* loader
* add changeset
* pr fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-27 12:31:58 -07:00
Abubakar Abid
7af3cd7ccb
Adds a placeholder
argument to gr.Chatbot
( #7849 )
...
* add placeholder
* add changeset
* add test
* format
* lint
* chatbot
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 12:13:17 -07:00
Freddy Boulton
ee804b2d56
Stop running iterators when js client disconnects ( #7835 )
...
* Add code
* add changeset
* move
* add changeset
* Add code
* Format notebook
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 17:41:40 +00:00
Yuichiro Tachibana (Tsuchiya)
72661e3391
Revert the minify setting in vite.config.js which was mistakingly introduced in #6261 ( #7852 )
...
* Revert the minify setting in vite.config.js which was mistakingly introduced in #6261
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 19:03:25 +09:00
pngwn
bf5110a26b
chore: update versions ( #7771 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-25 12:35:44 -04:00
Dmytro Drach
f7df92f3f3
Improve UX of non-interactive slider ( #7814 )
...
* Fix disabled slider appearance
* add changeset
* tweaks
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-03-25 15:10:10 +00:00
Yuichiro Tachibana (Tsuchiya)
ff6bf3ec8f
Remove the aiohttp mock from the Wasm worker as it's removed in https://github.com/gradio-app/gradio/pull/5244 ( #7789 )
...
* Remove the aiohttp mock from the Wasm worker as it's removed in https://github.com/gradio-app/gradio/pull/5244
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-23 23:29:49 +09:00
Ali Abdalla
c62a57e7f8
Convert Docs Demos to Lite ( #7661 )
...
* edit demos
* edit demos
* remove and replace demos
* convert docs demos to lite
* add changeset
* working
* styling
* notebook
* notebook
* formatting
* /docs embedding from spaces
* shared worker mode
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-22 17:32:23 -07:00
Yuichiro Tachibana (Tsuchiya)
d831040032
Remove Ruff and Uvicorn in Wasm env ( #7744 )
...
* Exclude `ruff` from the requirements list for Wasm env
* Exclude `uvicorn` from the requirements list for Wasm env and fix the related modules not to try to import it when not used
* add changeset
* Fix tests
* add changeset
* Apply formatter
* Remove a test case which became unnecessary in https://github.com/gradio-app/gradio/pull/5267 , ref: https://github.com/gradio-app/gradio/pull/7744#issuecomment-2011332287
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-22 17:32:59 +09:00
Abubakar Abid
2efb05ed99
Adds support for kwargs and default arguments in the python client, and improves how parameter information is displayed in the "view API" page ( #7732 )
...
* changes
* changes
* add changeset
* improvements to api docs ui
* add changeset
* ux design work
* further styling
* feedback
* add changeset
* get parameter name
* fix code snippet
* construct args
* add changeset
* construct_args
* utils
* changes
* add catches
* fixes
* valid
* fix tests
* js lint
* add tests
* add changeset
* format
* client
* doc
* fixes
* changes
* api docs fixes
* fix .view_api()
* updating guide wip
* guide
* updated guides'
* fix
* guide fixes
* filepath
* address review
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-21 17:18:13 -07:00
Freddy Boulton
755157f99c
Do not reload code inside gr.NO_RELOAD context ( #7684 )
...
* Add code
* Copy files
* I think its working
* Tidy up
* add changeset
* do not change demos
* test
* Don't copy files
* Add code
* lint
* Add reload mode e2e test
* Reload mode test
* add changeset
* add changeset
* Use NO_RELOAD
* add no reload to docs
* add changeset
* Fix docs
* handle else statements. No need to edit string
* Fix typos
* Use compile
* Do not use unparse
* notebook
* Documentation comments
* Fix top-package import without having to delete all modules
* Revert demo calculator
* Typo guides
* Fix website
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-21 15:59:53 -04:00
Hannah
ca42748590
Ensure paginate
updates when samples value changes in Dataset
( #7761 )
...
* ensure paginate updates when samples value changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-21 15:12:34 +00:00
Freddy Boulton
e78bca4f37
Trigger input event for Radio even when radio is output component ( #7762 )
...
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-20 16:58:33 -04:00
Hannah
4da44c4589
add diff threshold to image editor ( #7763 )
2024-03-20 17:09:04 +00:00
pngwn
4da194fc77
chore: update versions ( #7669 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19 13:50:31 -07:00
Dawood Khan
15da39fca0
Multimodal Textbox (Chat Input Component) ( #7420 )
...
* first pass
* multimodal textbox
* add changeset
* remove file
* more changes
* changes
* add changeset
* revert demo
* doc strings fix
* update demo
* file icons
* more updates
* format
* add story
* remove doc line
* type fixes
* chat interface
* new demo
* image upload fix
* ui changes
* addressing PR comments
* format
* type check
* more pr fixes
* format
* format
* test fixes
* test fixes
* Streaming fixes + other stuff
* optional keys to dict value
* final fixes
* notebook
* format
* Update guides/04_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/04_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/04_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* merge
* backend fixes
* story fix
* ui test fix
* format
* story
* format
* demo fix
* streaming test fix
* stories fix
* stories fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-19 13:16:05 -07:00
Dawood Khan
c9aba8d8a5
Fixes: gr.Markdown is not updated properly when it has an image tag ( #7623 )
...
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-19 12:52:03 -07:00
pngwn
41385f402b
fix dataframe stories ( #7747 )
2024-03-19 19:50:48 +00:00
Ali Abdalla
f739bef6c7
Add Playground to Lite Custom Element ( #7660 )
...
* lite playground changes
* add changeset
* formatting
* index
* fix tests
* fixes
* add changeset
* styling changes
* code parsing
* formatting
* remove tailiwnd
* add shortcut
* formatting
* linting
* formatting
* snake case
* typing
* try fix
* remove import
---------
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>
2024-03-19 11:49:21 -07:00
Hannah
a2badf151e
Migrate to Storybook 8 ( #7743 )
...
* migrate to storybook 8
* add changeset
* formatting
* test
* pnpm lock
* revert test
* update testing-library
* pass (and improve) failing tests
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-19 11:22:21 -07:00
aliabid94
84f81fec92
Closing stream from the backend ( #7691 )
...
* chganges
* add changeset
* changes
* changes
* changes
* changes
* maybe fix (#7715 )
* maybe fix
* fix with demo
* changeset
* fix demo
* 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: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-18 14:37:38 -07:00
Yuichiro Tachibana (Tsuchiya)
f67759dcee
Fix wasm_proxied_mount_css to not reuse an existing style element ( #7709 )
...
* Fix wasm_proxied_mount_css to not reuse an existing style element but replace it for theme updates upon rerunning a new app
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-18 07:30:11 -07:00
Yuichiro Tachibana (Tsuchiya)
0a3870d52b
Call handle_darkmode() even if window.__gradio_mode__ === "website"
but enforce the light theme ( #7710 )
...
* Call handle_darkmode() even if `window.__gradio_mode__ === "website"` but enforce the light theme
* add changeset
* Rename functions
* Fix `handle_theme_mode()` not to access a variable `active_theme_mode` in an outer scope
* Rename use_system_theme to sync_system_theme
* Replace let with const
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-18 07:29:08 -07:00
pngwn
598ad7baf7
fix dev mode ( #7703 )
...
* fix dev mode
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-14 19:44:55 +00:00
pngwn
5d1e8dae5a
batch UI updates on a per frame basis ( #7564 )
...
* changes
* process fe fn tests
* cleanup
* cleanup
* create_target_meta tests and abstraction
* add interactivity detection and tests
* more functions more tests
* add tests for component loader, fix errors
* fix everything
* add changeset
* add changeset
* ci
* cleanup
* cleanup
* test
* fix again
* tweaks
* cleanup
* add changeset
* fix loading_status
* cleanup
* ensure updates have been flushed before making API requests
* add changeset
* df fix
* fixes
* fix dataframe updates
* fix dataframe updates
* remove $open var
* add changeset
* fix tests
* extend timeout for lite
---------
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>
2024-03-13 13:46:40 +00:00
pngwn
6683ab2589
chore: update versions ( #7630 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-08 16:35:23 -08:00
Freddy Boulton
b3b0ea3e11
Add --python-path, --pip-path, --gradio-path CLI arguments to let custom component developers control which executable is used ( #7638 )
...
* backend code
* Frontend code
* add changeset
* Add to FAQ
* lint
* Check pip3/python3
* Check pip/python3 and edit docstrings.
* Build docstring
* more informative error
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 15:01:49 -08:00
pngwn
57510f9ce0
Lite version ( #7647 )
...
* fix user links
* add gradio as dependency to lite
* tweak
* fiiiiix
* fix deps
* changes
* asd
* asd
* asd
* asd
* fixed
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* fgh
* asd
* asd
* asd
* asd
* add changeset
* prevent duplicate dependency entries
* Update .changeset/changeset.cjs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-08 22:56:34 +00:00
Abubakar Abid
d0688b3c25
Files should now be supplied as file(...)
in the Client, and some fixes to gr.load()
as well ( #7575 )
...
* more fixes for gr.load()
* client
* add changeset
* format
* docstring
* add assertion
* warning
* add changeset
* add changeset
* changes
* fixes
* more fixes
* fix files
* add test for dir
* add changeset
* Delete .changeset/giant-bears-check.md
* add changeset
* changes
* add changeset
* print
* format
* add changeset
* docs
* add to tests
* format
* add changeset
* move compatibility code out
* fixed
* changes
* changes
* factory method
* add changeset
* changes
* changes
* sse v2.1
* file()
* changes
* typing
* changes
* cleanup
* changes
* changes
* changes
* fixes
* changes
* fix
* add changeset
* changes
* more changes
* abc
* test
* add payloads
* lint
* test
* lint
* changes
* payload
* fixes
* fix tests
* fix
* clean
* fix frontend
* lint
* add changeset
* cleanup
* format
* get examples to show up in loaded spaces
* add filedata prop to frontend
* add skip component parameter
* address feedback
* with meta
* load
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 12:29:02 -08:00
Yuichiro Tachibana (Tsuchiya)
7c66a29dea
Fix the Lite custom element to initialize the app in the connected callback and dispose the app in the disconnected callback ( #7577 )
...
* Fix the Lite custom element to initialize the app in the connected callback and dispose the app in the disconnected callback
* add changeset
* Add type hints
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 12:04:39 -08:00
Yuichiro Tachibana (Tsuchiya)
2edba133e2
Fix CrossOriginWorkerMaker
to cache the blob URL ( #7571 )
...
* Fix `CrossOriginWorkerMaker` to cache the blob URL
* add changeset
* Rename variables
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 12:03:56 -08:00
paragonnov
9482c7a3d2
fix: redundant meta tags that are unwanted ( #7643 )
...
* fix: redundant meta tag duplicates that are unwanted
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 09:43:26 -08:00
pngwn
ba8cc48b13
feature detect CSSStylesheet ( #7628 )
...
* feature detect CSSStylesheet
* add changeset
* logs
* polyfill instead
* polyfill instead
* remove polyfill
* fix lockfile
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-06 20:27:39 +00:00
pngwn
d8636bb050
chore: update versions ( #7626 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-06 17:13:41 +00:00
Dawood Khan
8181695e70
image upload fix ( #7625 )
...
* image upload fix
* remove
* add changeset
* valid mimetype fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-06 09:00:49 -08:00
pngwn
3d270d43f9
chore: update versions ( #7526 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 16:54:36 -08:00
Dawood Khan
e340894b1c
Quick fix: custom dropdown value ( #7567 )
...
* fix
* add changeset
* fix
* revert
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 15:21:30 -08:00
Dawood Khan
26356a623c
Fixes: Invalid file_type breaks drag and drop ( #7559 )
...
* file type fix
* add changeset
* pdf test
* format
* test fixes
* file test fix
* file path fix
* new test
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-03-05 16:52:22 -05:00
Abubakar Abid
4d5789e905
Allow mounted Gradio apps to work with external / arbitrary authentication providers ( #7557 )
...
* add parameter
* format
* add changeset
* docstrings
* changes
* changes
* docs
* mark flaky
* test
* docs
* docs
* push
* docs
* Update guides/01_getting-started/03_sharing-your-app.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* fix typecheck
* error
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-03-05 12:41:39 -08:00
Hannah
f26aba00a7
Prevent audio speeding up when trimming ( #7599 )
...
* fix trim region background colour and change showRedo -> show_redo
* tweak audio sampling logic
* add changeset
* add trim_region_color to py docs
* formatting
* use trim_region_color for trim border
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 20:10:10 +00:00
Yuichiro Tachibana (Tsuchiya)
9c6de6d850
Upgrade Pyodide to 0.25.0 ( #7119 )
...
* Upgrade Pyodide to 0.25.0
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 10:33:56 -08:00
renovate[bot]
0eea27a984
chore(deps): update dependency stylus to ^0.63.0 ( #7604 )
...
* chore(deps): update dependency stylus to ^0.63.0
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 10:25:31 -08:00
MMP0
3645da5f1e
Fix incorrect relative mouse coordinates for Gallery
preview overlay ( #7516 )
...
* Fix incorrect relative mouse coordinates for `Gallery` preview overlay
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-04 23:48:22 +00:00
renovate[bot]
3940490fc0
chore(deps): update dependency svelte-hmr to ^0.16.0 ( #7594 )
...
* chore(deps): update dependency svelte-hmr to ^0.16.0
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-03-04 15:11:12 +00:00
pngwn
ea984dea51
ensure lite build doesn't wipe out core build ( #7597 )
2024-03-04 15:01:37 +00:00
renovate[bot]
4b0d589330
chore(deps): update all non-major dependencies ( #7340 )
...
* chore(deps): update all non-major dependencies
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-03-04 14:04:14 +00:00
pngwn
561579d9b7
fix-tests ( #7345 )
...
* fix-tests
* [tmp] Comment-out
* Fix the URL constructor calls in `resolve_wasm_src()`, `should_proxy_wasm_src()`, and `<DownloadLink />` to handle relative URLs
* Remove a circular dependency between lite/index.ts and lite/custom-element/index.ts to solve a bug that the dev app is mounted twice sometimes
* Fix js/app/test/image_component_events.spec.ts
* Set the `testIgnore` in `.config/playwright.config.js`
* Fix the Lite dev mode only to create an app and expose the controller for Playwright, without editors etc.
* add changeset
* Set the mocked ruff version as 0.2.2
* Extend timeout
* Fix to use the built lite files instead of the dev server
* add changeset
* comment out failed tests
* Revert "comment out failed tests"
This reverts commit 3580d79887
.
* Fix the Gellery component to work in Wasm
* Fix js/app/test/file_explorer_component_events.spec.ts to run on Wasm
* Ignore queue_full_e2e_test.spec.ts
* Revert "[tmp] Comment-out"
This reverts commit c775c0cc29
.
* Revert "Extend timeout"
This reverts commit 742d1e1e83
.
* Remove a commented out line
* Refactor file_explorer_component_events.spec.ts
* Revert "fix-tests", restoring the original test-functional.yml content
This reverts commit 9ff2a7ddc5
.
* Set CI step names
* [tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"
This reverts commit de2dbe3317
.
* Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content""
This reverts commit 32154f3bb1
.
* [tmp] Revert "Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"""
This reverts commit 204075e190
.
* Fix vite.config.js removing unnecessary code
* Revert "Set the `testIgnore` in `.config/playwright.config.js`"
This reverts commit 98dccc5be9
.
* Add gallery_component_events.spec.ts
* Revert js/app/test
* tweak
* tweak
* revert workflow changes
* add changeset
---------
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-04 14:03:46 +00:00
Abubakar Abid
bd2c695328
Adds a gr.DownloadButton
component ( #7518 )
...
* py
* path
* barebones js
* add changeset
* add changeset
* downloadbutton
* add changeset
* changes
* clog
* commit
* revert'
* fix
* js
* add changeset
* cleanup
* download
* notebooks
* stories
* change
* fix
* format
* download
* Fix updating `icon` parameter (bug resulting from https://github.com/gradio-app/gradio/pull/7528 ) (#7554 )
* fetch 2
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-28 12:07:36 -08:00
Hannah
65f114a117
Add error handling for missing js/_website/version.json
( #7451 )
...
* add error handling for version.json
* tweak error
* add changeset
* formatting
* tweak logic
* fix build
* tweak
* fix ENOENT error during build
* revert removal of 3.50.2 routes
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: Ali Abdalla <ali.si3luwa@gmail.com>
2024-02-28 19:05:48 +01:00