pngwn
020c65e8e1
chore: update versions ( #8141 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-26 12:53:44 +00:00
Yuichiro Tachibana (Tsuchiya)
c452acb0f6
Add tests for Lite custom element parser ( #8081 )
...
* Add tests for Lite custom element parser
* Fix the tests to detect the error #8067 fixed
2024-04-26 09:55:48 +09:00
pngwn
dfd03f38bd
chore: update versions ( #8069 )
...
* chore: update versions
* Revert @gradio/code
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-04-25 23:08:27 +00:00
Yuichiro Tachibana (Tsuchiya)
595ebf74c5
Cache an error from app.submit() and show it on frontend ( #8115 )
...
* Cache an error from app.submit() and show it on frontend
* Fix typing
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-25 22:26:06 +01:00
pngwn
15a7106a36
allow custom component authors to provide custom vite plugins and svelte preprocessors ( #6787 )
2024-04-25 19:58:42 +01:00
aliabid94
2e469a5f99
Using keys to preserve values between reloads ( #8056 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* add changeset
* rev pn
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-25 11:25:53 -07:00
pngwn
e089e4cb4a
update dependencies ( #8122 )
...
* updates
* add changeset
* changeset
* changeset
* types
* fix types
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-24 23:55:14 +01:00
Freddy Boulton
38a5482df4
Be able to link to a custom component in the gallery directly ( #8119 )
...
* take a stab
* fix code
* add changeset
* revert lock
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-24 17:55:48 -04:00
Ali Abdalla
17e83c958e
Docs Reorg and Intro Page ( #8061 )
...
* docs intro page and guides
* python library docs and js client
* reorg
* changes
* add better hovering
* fix broken version routing
* add redirects and remove duplicate pages
* fix build issues
* fix issues
* formatting
* add changeset
* add changeset
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* styling changes
* formatting
* fix build
* rounded corners on buttons
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-23 13:33:45 -07:00
Freddy Boulton
32cfa614d6
Remove auto-created files from gradio cc publish
and other tweaks ( #8040 )
...
* Change flow
* add changeset
* Add readme
* Fix twine issue and artifacts
* add changeset
* Update gradio/cli/commands/components/publish.py
Co-authored-by: Lucain <lucainp@gmail.com>
* Upload gitignore file + HfAPI tweaks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Lucain <lucainp@gmail.com>
2024-04-23 10:57:20 -04:00
Yuichiro Tachibana (Tsuchiya)
5bf61cb15b
Hide the scroll bar in WaveformControls when it's not necessary ( #8065 )
...
* Hide the scroll bar in WaveformControls when it's not necessary
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 13:27:39 +09:00
Yuichiro Tachibana (Tsuchiya)
d665f40970
Fix custom JS function caller to concat the outputs of a dep to the inputs as the arguments ( #8051 )
...
* Fix custom JS function caller to concat the outputs of a dep to the inputs as the arguments
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 13:26:34 +09:00
renovate[bot]
659d3c51ae
chore(deps): update dependency iframe-resizer to v4.3.11 ( #8092 )
...
* chore(deps): update dependency iframe-resizer to v4.3.11
* 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-04-22 09:35:35 -07:00
Hannah
1c99570f3c
Adjust View Api
container z-index
( #8084 )
...
* update z-index to layer-top
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 04:09:06 +02:00
pngwn
624f9b9477
make gradio dev tools a local dependency rather than bundling ( #8066 )
2024-04-19 18:41:40 -04:00
Hannah
450b8cc898
Refactor JS Client ( #7646 )
...
* initial setup
* fix hf token prefix
* warnings + error handling
* implement stream, predict and submit
* update blocks with new client
* add changeset
* temp comment
* add changeset
* add sse_v3 chages
* imrpove typing, reimplement websocket logic
* refactor zerogpu logic
* integrate fetch_implemenation
* wasm changes
* tweaks
* tscheck fixes
* type fixes
* test
* test import tweaks
* test
* package.json
* improve typing + config
* config tweak
* remove fetch-mock
* pnpm lock
* config
* remove module
* tweak
* tweak
* fix config
* test
* test
* lockfile
* fix types
* more config tweaks
* type fixes
* formatting
* fix typing
* formatting
* type fixes
* test
* lockfile
* revert comment
* package.json
* tweak
* formatting
* test
* revert ts removal
* remove comments + logic fixes
* type fix
* formatting
* test
* stream logic changes
* fix test
* revert comments
* fix streaming test
* stream tweak
* data typing
* fix wasm fetch
* client typing tweaks
* more fixes + typing improvements
* move functions
* event_source tweaks
* cleanup
* add hardware types and cleanup jwt
* improve api info typing
* add await client() backwards compatiblity
* rename create to connect and move duplicate logic
* Update `Client` usage examples (#8003 )
* update client examples
* remove test data
* fix types
* remove types changes
* client -> Client.create
* Update client/js/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update client/js/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* update duplicate docs
* attempt to update cn docs
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* type improvements and config error handling
* fix image editor issue
* Merge branch 'main' into refactor-client
* improve typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-19 23:36:13 +02:00
Yuichiro Tachibana (Tsuchiya)
0fb058ec23
Fix the Lite custom element parser so it doesn't add the .code option when the entrypoint file is already specified ( #8067 )
...
* Fix the Lite custom element parser so it doesn't add the .code option when the entrypoint file is already specified
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 06:26:42 +09:00
Yuichiro Tachibana (Tsuchiya)
176a8a4d71
Fix Label component's value change detection to avoid infinite loop dispatching the change event ( #8054 )
...
* Fix Label component's value change detection to avoid infinite loop dispatching the change event
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-20 05:43:10 +09:00
Yuichiro Tachibana (Tsuchiya)
367a20c525
Fix the visual test on the Label component ( #8078 )
...
* Set the chromatic parameters on Label's stories to test it in different viewports
* Make the mock text longer
2024-04-20 05:14:06 +09:00
Freddy Boulton
2afca65419
Add max_file_size
parameter to launch()
that limits the size of files that can be uploaded in the Gradio app ( #7909 )
...
* File size limits
* Implementation
* add changeset
* Fix tests
* python client support
* lint
* fix test
* lint
* add changeset
* Set at the blocks level
* add changeset
* type check
* format
* lint
* lint
* Delete files as soon as they're encountered
* fix tests
* type hint 🙄
* Fix tests
* Fix below limit test
* add changeset
* Fix tests
* Add client file
* revert loop code
* Add to guides
* Pass in via gradio component
* add changeset
* Update loading status
* Make errors closeable
* add changeset
* Add code
* Lint
* Changelog highlight
* Fix i18n in storybook
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-19 15:38:53 -04:00
Amos You
26e1c87179
fix: break words in dropdown + multiselect ( #8058 )
...
* fix: break words in dropdown + multiselect
* fix: prevent shrinking of x button
2024-04-19 09:53:38 -07:00
Yuichiro Tachibana (Tsuchiya)
72f4ca88ab
Fix gr.Label
styling and a11y markup ( #8063 )
...
* Set `text-align: left` to the texts in the Label component
* Remove unnecessary if-block, which is inside another if-block with the same condition
* Fix the accessibility markup
* add changeset
* add changeset
* Add Label.stories.svelte
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-18 15:37:48 -07:00
pngwn
ddc5d3866c
chore: update versions ( #7992 )
...
* chore: update versions
* changeset
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 18:09:10 +00:00
renovate[bot]
cecd6e4c4a
Update dependency iframe-resizer to v4.3.10 ( #8062 )
...
* Update dependency iframe-resizer to v4.3.10
* 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-04-18 10:18:29 -07:00
pngwn
074ce3805a
ensure the ImageEditor
works correctly with layers and change
events ( #8059 )
...
* stuff
* fix layrs
* add changeset
* lint
* ensure a default image can be passed when sources list is empty
* fix loading status
* add layers option to disable layer ui
* types
* fix tests
* cleanup
* cleanup
* notebooks
* fix composite
* fix
* fix trash icon
* add changeset
* fix layer bg
* fix error display
* notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-18 15:55:00 +00:00
pngwn
92139f3d7d
refresh the ImageEditor
UI ( #8042 )
...
* changes
* icons
* asd
* add changeset
* ui
* fix empty text position
* fix button toggle
* cleanup
* add changeset
* lint
* fix test
* fix again
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-17 16:45:35 -04:00
Ernie Chu
d6c289b346
round [x, y, w, h] before cropping to avoid unexpected interpolation on pixel values ( #8046 )
2024-04-17 21:34:01 +02:00
Yuichiro Tachibana (Tsuchiya)
522daf787a
Patch async_save_url_to_cache
for Lite ( #8026 )
...
* Update `async_save_url_to_cache` to work on Wasm
* Refactoring `save_url_to_cache`
* add changeset
* Fix
* Use pyodide.http as a custom transport of httpx
* Use urllib3 as a custom transport of httpx to make sync http requests
* Add an E2E test case to detect the bugs on remote resource caching
* add changeset
* Add image_remote_url E2E test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-17 03:54:34 +09:00
Dawood Khan
55ef4a52c3
Fixes Chatbot Image Sizing ( #8025 )
...
* fix
* add changeset
* fix
* notebook fix
* clean
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-16 16:38:20 +02:00
Yuichiro Tachibana (Tsuchiya)
c9ddd847d6
Update the Lite custom element parser ( #7975 )
...
* Update the Lite custom element parser to deal with the text inside `<gradio-lite>` when there is no `<gradio-code>` elements, which works with other custom elements like `<gradio-requirements>`
* add changeset
* Remove `.trim()`
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-16 07:19:02 +09:00
hrrbay
2a5cb97824
ensure ImageEditor
always draws at the correct position ( #7959 )
...
* reset layers on dimension change
* add changeset
* resets only if layer has dimension missmatch
* fix formatting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-04-15 21:47:09 +00:00
pngwn
6fafce0670
ensure maps are correctly shallow cloned when updating state ( #8028 )
...
* ensure maps are correctly shallow cloned when updating state
* cleanup
* add changeset
* fix test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-15 17:26:15 -04:00
pngwn
dbb7373dde
ensure ImageEditor
events work as expected ( #7845 )
...
* changes
* changes
* more fix
* more fix
* add changeset
* fix initial crop
* fix format
* fix format
* fix formats
* faster?
* race condition
* fixes + test
* fix type?
* notebooks
* fix type
* change demo
* add changeset
* fix type
* fix type
* fix type again
* fix type again again
* lint
* lint again
* fix test
* tests
* fix
* tests
* address comments
* fix notebooks
* fix tests
* fix stories
* fix webcam ui
* cleanup
* add changeset
* fix input event
* add format param + fix input event
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-15 20:16:07 +00:00
aliabid94
06bdf0eddf
Restore chatbot formatting ( #7998 )
...
* changes
* add changeset
* add changeset
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-11 22:40:08 +00:00
Freddy Boulton
8903415e49
Add show_progress prop to Upload Component to bring back upload progress animation ( #8002 )
...
* Add show_progress prop
* add changeset
* Add code
* skip for now
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-11 15:30:30 -07:00
Freddy Boulton
c1df2f818c
Fix example loading for custom components ( #7981 )
...
* format
* add changeset
* add changeset
* Update component
* Add tests
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-10 17:52:41 -04:00
Lucain
5f0248e797
When authenticating with HF OAuth, stay in same tab ( #7887 )
...
* OAuth: stay in same tab
* add changeset
* add changeset
* typo
* scroll
* add changeset
* lint
* test
* test with timeout
* log
* new test
* fix origin in postMessage
* with timeout
* shoud be fine
* lint
* lint
* remove logs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-10 14:15:26 +01:00
pngwn
b561a27816
chore: update versions ( #7914 )
2024-04-08 20:07:24 +01:00
aliabid94
7c9a964ac6
Fix programmatic tab selection ( #7916 )
...
* changes
* changes
* add changeset
* changes
* add changeset
* changes
* add changeset
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-08 11:34:25 -07:00
Hannah
057d171c71
Correctly handle device selection in Image
and ImageEditor
( #7754 )
...
* move on:change to <select>
* add changeset
* move device logic to separate file + fix safari incompatability
* improve selected logic
* add stream_utils unit tests
* refactor default device logic
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-08 19:20:47 +01:00
Ihtsham Shafiq
328325a7ad
style changes for gradio website docs navbar ( #7945 )
...
* style changes for navbar items and menu bar button
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-04-08 10:33:00 -07:00
pngwn
1eb4c20120
ensure kwargs are always in sync across the whole application ( #7963 )
...
* ensure kwargs are always in sync across the whole application
* add changeset
* fix test
* update accordion test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-08 18:12:14 +01:00
Dawood Khan
be46ab1213
ensure entire dropdown is clickable ( #7918 )
...
* dropdown click fix
* add changeset
* add changeset
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-08 13:06:14 -04:00
Freddy Boulton
b78129d90f
Use asyncio.Event to stop stream in heartbeat route ( #7932 )
2024-04-05 11:57:49 -07:00
Abubakar Abid
919afffcee
Adds a Guide on deploying Gradio apps with Docker ( #7935 )
...
* finish guide
* more informative exception
* add changeset
* add dockerfile to prism languages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-04-04 19:23:23 -07:00
aliabid94
b165193902
Restore Markdown formatting for Chatbots, MarkdownCode ( #7936 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* add changeset
* chages
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-04 15:04:46 -07:00
aliabid94
9666854790
Fixes streaming event race condition ( #7926 )
...
* changes
* add changeset
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-04 12:39:44 -07:00
Ali Abdalla
b43055b297
Lite playground design changes ( #7811 )
...
* prevent new line on cmd+enter shortcut
* add copy button
* add download button
* better font sizing and align editor buttons
* button colors and header positioning
* add layout attribute
* height issue
* border fix
* overflow
* add changeset
* tests
* tweaks to index
* fix formatting in index.html
* fix event listener
* better alignment on header
* fix padding on code editor buttonsm
* add dark mode
* formatting
* fix heights issues
* add to guide
* shared worker and small fix
* Update guides/08_gradio-clients-and-lite/gradio-lite.md about SharedWorker mode (#7923 )
* layout edit in guide
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-04-04 04:38:12 -07:00
Bocheng Zou
867ff16cd4
Trigger the "clear" event of Image Editor ( #7817 )
2024-04-03 23:45:59 +01:00
Abubakar Abid
2bae1cfbd4
Adds an "API Recorder" to the view API page, some internal methods have been made async ( #7850 )
...
* changes
* code recorder
* api docs
* add changeset
* changes
* change
* add changeset
* add changeset
* changes
* fixes
* format
* changes
* fix
* add changeset
* rename
* api recorder
* docs
* changes for pr
* fix
* async-ify
* add changeset
* fix typing
* fixes
* fix test/test_blocks
* fix more tests
* fix test
* add changeset
* fix more tests
* add async version
* make 2 separate functions
* format
* fix
* format
* fix tests
* move resource
* changes
* fix cache
* lite fixes
* make lazy cache async
* fix
* fix
* flaky
* replace null with None
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-03 14:28:06 -07:00
Freddy Boulton
efd9524508
Fix gr.CheckboxGroup change event ( #7915 )
2024-04-03 07:19:58 -07:00
pngwn
bbdbd28453
chore: update versions ( #7871 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 13:33:48 -04:00
Freddy Boulton
6a4bf7abe2
Delete user state when they close the tab. Add an unload event for the demo and a delete_callback on gr.State to let developers control how resources are cleaned up ( #7829 )
...
* Delete state
* add changeset
* Delete state
* WIP
* Add load event
* Working ttl
* unload e2e test
* Clean up
* add changeset
* Fix notebook
* add changeset
* Connect to heartbeat in python client
* 15 second heartbeat
* Demo for unload
* Add notebook
* add changeset
* Fix docs
* revert demo changes
* Add docstrings
* lint 🙄
* Edit
* handle shutdown issue
* state comments
* client test
* Fix:
* Fix e2e test
* 3.11 incompatibility
* delete after one hour
* lint + highlight
* Update .changeset/better-tires-shave.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update .changeset/better-tires-shave.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-01 18:31:56 -04:00
aliabid94
5e66e01abc
Fix audio streaming out ( #7881 )
...
* changes
* add changeset
* 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>
2024-04-01 02:25:16 -07:00
Srilekha P
ceabe503dc
Adding hover to shadow-alternate on the cards on the website ( #7891 )
...
* Adding Hover to shadow-alternate
* style
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-29 16:14:20 -07:00
Dawood Khan
6a6db36466
Paste Images into MultimodalTextbox ( #7872 )
...
* submit button icon
* loader
* add changeset
* pr fix
* paste
* format
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-29 18:09:09 +00:00
aliabid94
7bbc3b62bf
JS functions break entire app if there's no input, fixed ( #7865 )
...
* changes
* add changeset
* add changeset
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-28 14:54:46 -07:00
pngwn
d95a1a44d6
chore: update versions ( #7826 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 14:25:36 -07:00
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
Abubakar Abid
1fa2e914ca
Fixes auth_message
so that it correctly renders HTML ( #7545 )
...
* quick fix
* add changeset
* story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 16:16:52 -08:00
Abubakar Abid
eda33b3763
Refactors get_fetchable_url_or_file()
to remove it from the frontend ( #7528 )
...
* fetch
* add changeset
* add changeset
* simplify
* add changeset
* changes
* format
* add changeset
* changes
* format
* fixes
* lint
* fix components
* fixes
* typing
* format frontend
* path
* fixes
* fix stories
* lint
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-26 13:01:00 -08:00
paragonnov
08c2d491ec
when adding custom head html, ensure there are no duplicate meta tags ( #7510 )
...
* fix: remove old element to prevent duplication
remove old element before append new meta tag to prevent duplication
* fix: unexpected
* Update
* format
* unexpected
* unexpected
* add changeset
* improve
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-23 17:04:04 +00:00
pngwn
daf40b5ce3
fix tests? ( #7523 )
2024-02-23 16:29:11 +00:00
pngwn
bacbc70fa1
chore: update versions ( #7463 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 13:29:11 -08:00
MMP0
b186767744
Fix Gallery
preview overlay and backdrop ( #7505 )
...
* Restore `Gallery` translucent background
* Add `backdrop-filter` for Safari
* Fix overflowing `Gallery` preview overlay
* add changeset
* Older browser support
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-02-22 11:33:03 -08:00
Dawood Khan
9c36572e32
Quick fix: File height overflow ( #7507 )
...
* quick fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 11:11:26 -08:00
Yuichiro Tachibana (Tsuchiya)
33f68cb6c2
Fix Canvas3D/Canvas3DGS async imports ( #7511 )
...
* Fix Model3D and Model3DUpload to handle async-imports and access the child component's exported method
* Refactoring: reorder the lines to put the related snippets together
* add changeset
* Refactoring
* Disable the undo buttons for Canvas3DGS
* add changeset
* Refactoring to use optional chaining
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 22:28:56 +09:00
aliabid94
ba3ec1300e
Tab select fix ( #7470 )
...
* changes
* add changeset
* changes
* changes
* changes
* Update js/tabs/shared/Tabs.svelte
Co-authored-by: Aarni Koskela <akx@iki.fi>
* 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: Aarni Koskela <akx@iki.fi>
2024-02-21 17:27:58 -06:00
Davi Rodrigues
98a2719bfb
Fix z-index layer of orange generating border ( #7466 )
...
* fix z-index layer of generating border
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-21 13:59:39 -08:00
Abubakar Abid
ddd4d3e4d3
Reverts the revert that dropped changes from 2 PRs ( #7495 )
...
* Revert "Revert "changes""
This reverts commit 032435368d
.
* patch
2024-02-20 18:36:10 -08:00
Ali Abid
032435368d
Revert "changes"
...
This reverts commit 19dd2218dc
, reversing
changes made to 6a93633054
.
2024-02-20 16:21:27 -06:00
pngwn
ef85f336cf
ensure Dataframe headers are aligned with content when scrolling ( #7478 )
2024-02-19 21:59:56 +00:00
pngwn
1e5e787999
chore: update versions ( #7426 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-16 12:28:13 -08:00
Hannah
f191786791
Improve responsiveness of gr.Audio()
controls ( #6991 )
...
* improve audio container in mobile
* check for denied device access
* add changeset
* add changeset
* tweak controls placements
* add changeset
* add viewport modes to test
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 10:57:12 -08:00
Abubakar Abid
3e4e680a52
Fixes to the .key_up()
method to make it usable for a dynamic dropdown autocomplete ( #7425 )
...
* fixes
* changes
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-02-16 10:21:32 -08:00
aliabid94
f52cab634b
Dispatch change event for file explorer ( #7441 )
...
* changes
* add changeset
* changes
* changes
* fix test reqs in functional tests
* fix notebooks
* fix notebooks
* fix test flake
---------
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>
2024-02-16 12:03:10 -06:00
Hannah
6b8a7e5d36
Ensure gr.Dropdown
can have an empty initial value ( #7431 )
...
* ensure dropdown can have empty value
* add changeset
* add changeset
* Add story
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 18:24:02 +01:00
Danil
89450c6a8b
Updated translation for Russian ( #7428 )
2024-02-15 07:22:46 -08:00
pngwn
7b84bc4f05
chore: update versions ( #7387 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-14 14:17:50 -08:00
Dylan Ebert
3e886d8f0a
Model3D Gaussian Splatting ( #7406 )
...
* add gsplat dependency
add gsplat implementation
run formatting
move example .splat and .ply to url
add changeset
dispose of renderer on unmount
notebook
* dynamically load canvas components
2024-02-14 19:10:52 +00:00
pngwn
c2dfc592a4
remove static while pending behaviour ( #7410 )
...
* remove static while pending behaviour
* add changeset
* fix notebooks
* add changeset
* cleanup unused code + fix test
* fix notebooks
* oops
* re-add check
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 16:15:16 +00:00
Abubakar Abid
065c5b163c
Add .key_up
event listener to gr.Dropdown()
( #7404 )
...
* dropdown choice bug
* add changeset
* add changeset
* changes
* add changeset
* format
* key down:
* change
* change
* format
* add KeyDownData
* changes
* add demo
* notebook
* add changeset
* key up
* notebook
* changes
* Delete .changeset/shaggy-hairs-peel.md
* Delete .changeset/tasty-spies-spend.md
* revert changeset deletion
* change
* fix unit test
* type disable
* fix
* cset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-13 17:14:07 -08:00
aliabid94
65437ce832
Improve File Explorer performance ( #7337 )
...
* changes
* add changeset
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* Update gradio/components/file_explorer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/components/file_explorer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/file_explorer_component_events/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-13 16:51:47 -06:00
Abubakar Abid
dff410955e
Retain dropdown value if choices have been changed ( #7401 )
...
* dropdown choice bug
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-12 15:52:54 -08:00
Hannah
46b45683e1
Allow applying @media
, @keyframes
and @import
in custom CSS ( #7395 )
...
* allow @media and @keyframes in custom CSS
* add changeset
* demo tweak
* formatting
* fix
* tweak
* add .dark test
* formatting
* add font-face test
* support @import statements
* add changeset
* tweak
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-13 00:39:30 +01:00
Freddy Boulton
a4a990ca05
Custom component 2e2 test ( #7394 )
...
* e2e test
* Add requirements
2024-02-12 10:06:22 -08:00
Dawood Khan
17fb116492
Fixes gr.Markdown() does not render spaces around links correctly ( #7361 )
...
* fix
* remove console
* add changeset
* fix
* storybook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-11 13:16:50 -05:00
pngwn
bb4126cc24
chore: update versions ( #7338 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-09 22:15:34 -08:00
Hannah
4dc9ffbf70
Store gr.Accordion
's open
value ( #7375 )
...
* store open as writeable val
* add changeset
* add e2e test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-10 00:09:59 +01:00
pngwn
a7fa47a175
ensure Dataframes in background tabs are visible when the tab is selected ( #7354 )
...
* add mutation observer to track visibility changes of tabs
* add changeset
* add changeset
* update console.log statements in Svelte component for debugging purposes
* remove unused table_width variable and update console logs in virtual table component
* move visibility check to table
* try dom rect bindings instead
* update binding of viewport_box to correctly calculate viewport height
* remove console.log statements and unused code
* add changeset
* add changeset
* remove unnecessary assignment of t_width in component
* update svelte-check to make ci pass
* update dependencies for happy-dom and vitest
merged from upstream
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 18:23:05 +00:00
Shubham raj
f35f615e33
Added remove button for every file in file preview, to remove individual file in gr.File() ( #7299 )
...
* Add remove button for every file in file preview
* add changeset
* tweak remove file button
* format
* dispatch change event
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-09 08:55:47 -08:00
Yuichiro Tachibana (Tsuchiya)
7b10d97b0f
Remove the @gradio/wasm
dependency from @gradio/gallery
that is not used ( #7369 )
...
* Remove the `@gradio/wasm` dependency from `@gradio/gallery` that is not used
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 23:44:12 +09:00
Adrian Ehrsam
c1a7ea7c0c
Add SQL Support for gr.Code ( #7328 )
...
* add sql language support, Fixes https://github.com/gradio-app/gradio/issues/7316
* format
* add missing languages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-02-09 12:28:12 +00:00
Hannah
2244059cdb
Ensure CSS .dark
rule selectors are applied ( #7355 )
...
* fix ignored dark rules
* add changeset
* add changeset
* tweak
* test threshold
* test threshold again
* remove threshold and fix story
* test
* story tweak
* story test
* separate undo/redo from large interaction story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-09 00:39:40 +01:00
Hannah
9905e00e42
fix story again ( #7357 )
2024-02-08 21:52:33 +01:00
Hannah
b25f76c5df
increase threshold ( #7356 )
2024-02-08 17:31:16 +00:00
Abubakar Abid
49d9c48537
[WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component ( #7183 )
...
* processing
* add changeset
* changes
* add changeset
* add changeset
* changes
* changes
* clean
* changes
* add changeset
* add changeset
* root url
* refactor
* testing
* testing
* log
* logs
* fix
* format
* add changeset
* remove
* add root
* format
* apply to everything
* annoying fix
* fixes
* lint
* fixes
* fixes
* fixes
* fix tests
* fix js tests
* format
* fix python tests
* clean guides
* add changeset
* add changeset
* simplify
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-07 14:39:33 -08:00
pngwn
0db7272694
Fix lite tests ( #7342 )
...
* fix-tests
* fix-tests
* fix-tests
* fix-tests
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-07 14:57:52 +00:00
Yuichiro Tachibana (Tsuchiya)
cccab27fe8
E2E tests for Lite ( #6890 )
...
* Set up E2E test config for lite
* Use the same Page instance for all the tests in the case of lite
* Fix reading demo files
* Fix config
* Install requirements based on `requirements.txt`
* Add the "loaded" event dispatched from the main component to make a promise wait for the compoonent to be loaded
* Refactor js/tootils/src/index.ts
* Add testIgnore for lite
* Fix chatbot_multimodal.spec.ts
* Stop raising an exception when trying to cache examples but just show warning
* Update comment
* Mark the test slow when the page is initialized in it
* Add logs
* Set timeout
* add changeset
* Add the CI file .github/workflows/test-lite.yml
* Add E2E testing for Lite to the test-functional job
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 23:46:54 -08:00
pngwn
2382f741ff
chore: update versions ( #7177 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 15:19:29 -08:00
aliabid94
edfd05d18d
Expand chatinterface to full window height ( #7313 )
...
* changes
* changes
* add changeset
* changes
* changes
* changs
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 13:42:30 -08:00
Yuichiro Tachibana (Tsuchiya)
b3a9c83095
Lite: Wasm-compatible Model3D ( #7315 )
...
* Make Model3DUpload.svelte Wasm-compatible
* Make Model3D.svelte Wasm-compatible
* add changeset
* Create <Canvas3D /> and use it from <Model3D /> and <Model3DUpload />
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 13:22:25 -08:00
Hannah
733ca266bb
Ensure examples Images displays as expected ( #7325 )
...
* Tweak image size
* add changeset
* add changeset
* fix broken story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 21:02:18 +01:00
Hannah
200e2518e4
Add gr.Image
interaction test + gr.ImageEditor
interaction test improvement ( #7309 )
...
* add source selection interaction story
* add changeset
* add source selection e2e test
* add changeset
* add diff threshold to imageeditor story
* remove redundant <button>
* add changeset
* typo
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-06 11:20:20 -08:00
Abubakar Abid
aa97a5e33a
Improvements to API Docs ( #7292 )
...
* escape triple quotes when creating space.py for custom components
* Improve API docs
* add changeset
* revert
* fix
* changes
* add changeset
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-05 10:29:03 -08:00
renovate[bot]
e5344ba0cd
chore(deps): update dependency marked to v12 ( #7298 )
...
* chore(deps): update dependency marked to v12
* 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-02-05 09:01:19 -08:00
Abubakar Abid
d7095c4699
Number example fix ( #7294 )
...
* fix
* add changeset
* fix flaky functional test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-05 08:55:10 -08:00
Freddy Boulton
2e6672c815
Allow start/pause of streaming image input. Only access the webcam while it's needed ( #7228 )
2024-02-02 18:26:44 +00:00
Cody DeHaan
a3aa22f6f0
Adjust Value to Fix .Label Display ( #7276 )
...
* Bug fix
* add changeset
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-02 18:16:04 +00:00
Hannah
757dba66ba
Add show_label
check to gr.Dataframe
( #7283 )
...
* add show_label check and story test
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-02 09:45:59 -08:00
Hannah
5181957706
Add mobile Chromatic tests ( #7222 )
...
* Add mobile story tests
* add layout stories
* add changeset
* configure viewports
* formatting
* Remove tablet stories + add plot story
* add changeset
* add mobile tests to layout stories
* fix story
* fix story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-02 14:21:48 +00:00
Arian Ahmadinejad
fdd15213c2
chore: Change time format ( #7274 )
...
* fix: typos
* fix: remove newlines from latex delimiters
* add changeset
* chore: change time format to HH:MM:SS
* add changeset
* Revert "fix: remove newlines from latex delimiters"
This reverts commit cebfabb51c
.
* fix: remove accidental changes from different pr
* add changeset
* chore: change time format for player to use global formatting function
* fix: remove pipfile
* chore: use global time formatting for static video player
* chore: change to snake_case
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 13:23:19 -08:00
Aarni Koskela
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>
2024-02-01 11:32:40 -08:00
Abubakar Abid
18937564ab
Small cleanups of Code
component ( #7240 )
...
* small cleanups of code component
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-31 14:47:18 -08:00
Dawood Khan
c3e61e4f70
Few File component drag and drop ( #7141 )
...
* file comp fixes
* add changeset
* test fixes
* undo pr fixes
* add changeset
* file type fix
* format
* final fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-31 16:23:11 -05:00
Abubakar Abid
3c8c4ac2db
Document the gr.ParamViewer
component, and fix component preprocessing/postprocessing docstrings ( #7116 )
...
* add paramviewer to docs
* add changeset
* type fixing
* round to
* format
* revert to make test pass
* remove msg
* add changeset
* annotated image
* annotated image
push
* audio
* changes
* changes
* audio
* audio
* changes
* remove borders from code
* working
* fixes
* add changeset
* formatting
* build fix
* changes
* ls
* more components
* format
* some more
* more
* component
* plots
* buttons
* simple backend
* number
* more
* more
* simple templates
* format
* fixes
* backend
* fix tests
* fix test
* fixes
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-01-31 09:36:21 -08:00
Freddy Boulton
cae05c05ec
Fix single file upload display ( #7221 )
...
* Fix bug + add buggy story
* add changeset
* story fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-01-30 15:05:33 -05:00
Aileen Villanueva Lecuona
24157a3602
add background color based on the OS mode ( #7117 )
...
* add background color based on the OS mode
* add changeset
* use static css instead
* format
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
2024-01-30 11:40:21 -08:00
Hannah
3b8dfc684d
Add visible
check to Tab ( #7220 )
...
* add visible check to TabItem
* add changeset
* remove hide class
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-30 18:34:53 +00:00
Hannah
faead1403c
Show label in interactive image editor ( #7219 )
...
* show label in interative image editor
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-30 15:19:05 +00:00
Shubham raj
aab2a75f06
Allow selecting texts in dataframe cells ( #7154 )
...
* bugfix: Enable user-select for texts in editable cell
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 16:51:46 -08:00
Abubakar Abid
8dd6f4bc19
Handle the case where examples is null
for all components ( #7192 )
...
* handle null examples
* add changeset
* add changeset
* lint
* merge conflict
* fixes
* add changeset
* stories
* feedback
* examples
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 16:51:22 -08:00
Hannah
e3217b4186
Amend audio waveform colour ( #7207 )
...
* change waveform color option types
* tweak waveform color setting
* snake case tweak
* add changeset
* tweak BE test
* tweak component BE test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 19:03:38 +01:00
Hannah
efacc7d5cb
Ensure open
reactivity in Accordion ( #7208 )
...
* ensure `open` reactivity
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 18:59:41 +01:00
pngwn
572e360fff
Upload tweak ( #7206 )
...
* make uploadprogress display consistently in custom components
* add engines
* add changeset
* add changeset
* bump ci pnpm version
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 14:53:54 +00:00
Abubakar Abid
e418edd011
Fix SimpleImage package json ( #7205 )
...
* fix simple image package json
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 05:55:42 -08:00
Abubakar Abid
ccdaec4500
Add a simpleimage
template for custom components ( #7129 )
...
* simpleimage template
* add changeset
* changes
* change
* changes
* update backend
* update frontend
* add changeset
* lint
* fix package
* add changeset
* remove warnings
* docstrings
* fix error
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-26 17:29:29 -08:00
Hannah
ded5256c4a
Fix audio recording events not dispatching ( #7158 )
...
* fix audio events and add events test
* add changeset
* add changes to audio demo
* Fix e2e tests
* regenerate notebook
* formatting
* test timeout for e2e
* formatting
* remove value param from stop_recording
* formatting
* fix test
* formatting
* tweak
* test new playwright config
* skip test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-26 18:13:27 +01:00
pngwn
138761226a
chore: update versions ( #7083 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-25 16:10:24 -08:00
Freddy Boulton
c60ad4d34a
Use Gallery as input component ( #7148 )
...
* Gallery as input
* add changeset
* Add keep_captions parameter
* revert notebooks
* fix docstring typo
* use tuples
* remove keep_captions
* Update js/app/test/gallery_component_events.spec.ts
Co-authored-by: pngwn <hello@pngwn.io>
* more precise type hint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-01-25 18:51:59 -05:00
Freddy Boulton
e7ab4063eb
Fix ParamViewer css ( #7130 )
...
* Fix ParamViewer styles
* add changeset
* Fix description background color
* ParamViewer
* bottom border
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-01-25 16:11:38 -05:00
Yuichiro Tachibana (Tsuchiya)
be56c76c7b
Lite: Add the home_dir
to sys.path
( #7150 )
...
* Add the `home_dir` to `sys.path`
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-25 16:43:13 +09:00
Dawood Khan
ca8753bb3d
Fixes: Chatbot crashes when given empty url following http:// or https:// ( #7138 )
...
* link fix
* add changeset
* add unit test
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 23:01:38 -05:00
pngwn
6654a32eba
start cc docs guide ( #7080 )
...
* start cc docs guide
* add changeset
* complete guide
* proof + edit
* tweaks
* Update .vscode/settings.json
* Update guides/05_custom-components/09_documenting-custom-components.md
* update 5 min guide
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 21:43:02 +00:00
Yuichiro Tachibana (Tsuchiya)
8c355a4784
Add ruff mock for Lite ( #7133 )
...
* Add ruff mock for Lite
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 13:10:55 -08:00
Abubakar Abid
5727b92abc
Allow buttons to take null value ( #7126 )
...
* allow buttons to take null value
* add changeset
* add story
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 13:10:00 -08:00
pngwn
125a832ab7
generate docs when running gradio cc build
( #7109 )
...
* add docs command to build
* add changeset
* add changeset
* add arg to disable
* add changeset
* tweaks
* tweaks
* tweaks
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 18:12:18 +00:00
Abubakar Abid
45f725f8d0
un-disable output components after exception is raised ( #7125 )
...
* renable output components after exception
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-23 14:52:21 -08:00
Hannah
bc2cdc1df9
Allow download button for interactive Audio and Video components ( #7104 )
...
* allow download button for interactive audio and video components
* add changeset
* document show_download_button in video.py
* ensure show_download_button is by default true for output and false for input components
* fix component test
* tweak default val
* val tweak
* fix test and add story
* pass editable param where needed
* fix another test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-01-23 11:33:59 +01:00
Hannah
c35fac049a
Ensure device selection works in Audio when streaming ( #7082 )
...
* Fix microphone device access denied issue
* add changeset
* add microphone test
* create shared DeviceSelect component
* add changeset
* add e2e test
* regen notebooks
* formatting
* Fix e2e test
* formatting
* adjust controls box
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-23 10:49:29 +01:00
Hannah
80f8fbf0e8
Add logic to handle non-interactive or hidden tabs ( #7107 )
...
* Refactor change_tab function to handle non-interactive or hidden tabs
* add changeset
* Refactor flashcards app UI and modify test
* Fix formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-22 23:31:59 -08:00
Hannah
13cb6af8b2
Ensure microphone devices list updates ( #7045 )
...
* Fix microphone device access denied issue
* add changeset
* add microphone test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-22 16:19:48 -08:00
aliabid94
94aa271ab1
Improve rapid generation performance via UI throttling ( #7084 )
...
* changes
* add changeset
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-22 11:53:19 -08:00
tsukumi
e8b2d8b2f8
Add sample rate config option to gr.Audio()
( #6826 )
...
* Fix a bug that caused the sample rate of audio to be 8000 Hz after trimming and a bug that caused volume amplification and clipping each time trimming was performed
* Fix format
* add changeset
* add sample_rate param to waveform_options
* add changeset
* set WaveformOptions defaults
* formatting
* formatting
* add changeset
* audio
* changes
* add changeset
* tweak sample rate logic + docstring
* Tweak docstring
* formatting
* linting
* type tweak
* remove redundant None check
* tweak waveform lifecycle
* fix test
---------
Co-authored-by: tsukumi <tsukumijima@users.noreply.github.com>
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>
2024-01-22 10:56:48 -08:00
Hannah
44c53d9bde
Fix dropdown refocusing due to <label />
element ( #7081 )
...
* Remove extra blur causing refocus bug and add a11y tweaks
* change label to div causing reopen of dropdown
* add changeset
* Tweak label attribute
* fix browser test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-22 10:32:27 -08:00
Ali Abdalla
dfe1f08ae2
Style changes to custom components gallery ( #6970 )
...
* style and other changes
* add changeset
* many changes
* smaller description and remove fallback
* better loading and add space link
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-20 03:02:56 +04:00
Monius
1718c4aeb2
add STL 3D model support ( #7049 )
...
* add STL 3D model support
* add changeset
* add model3D demo with stl support
* add NASA open-soure SOFIA STL model source
* modify model3D instead
* fix notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-01-19 15:08:38 -05:00
pngwn
0a2ba5d0b0
chore: update versions ( #7004 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-19 00:13:02 -05:00
pngwn
07d520c7a2
fix versions ( #7069 )
...
* fix versoin
* add changeset
* fix lockfile
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 21:01:42 +00:00
pngwn
3a944ed9f1
add autodocs ( #7030 )
...
* add autodocs
* remove unused code
* add changeset
* fix all of the things
* fix all of the things
* add changeset
* fix things
* tewak
* fix dep
* add ruff as dep with min version
* make output pretty + fix bugs
* tweaks
* fixes
* fix types maybe
* fix arg refs
* fix test
* fix md
* add error for version
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 20:47:01 +00:00
Dawood Khan
3f139c7c99
Fix File drag and drop for specific file_types ( #6982 )
...
* fix file drag
* add changeset
* pr fixes
* test
* add changeset
* tests
* fix
* type fix
* add changeset
* functional test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-01-17 18:12:15 -05:00
Freddy Boulton
6be3c2c47a
Fix Chatbot custom component template ( #7038 )
...
* move to core dependency
* add changeset
* lockfile
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-17 10:52:14 -05:00
Hannah
ec28b4e7c4
Add visible
and interactive
params to gr.Tab()
( #7018 )
...
* add tabs params and visible logic
* add disabled logic
* add tabbed_interface logic
* add tab accessibility improvements
* Add aria-disabled attribute to tab buttons
* add e2e test
* add changeset
* add changeset
* add tab e2e test
* formatting
* run generate_notebooks.py
* lint
* ensure tabs values update
* remove tabbedinterface logic
* Remove unused parameters from TabbedInterface constructor
* remove test
* add test
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-17 14:39:10 +01:00
Hannah
f2d69fc7d0
Fix gallery thumbnail design regression ( #7024 )
...
* tweak image thumbnail object fit
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-15 16:51:42 +01:00
Abubakar Abid
9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example()
to .process_example()
( #6933 )
...
* image-editor-examples
* add changeset
* add changeset
* delete changeset
* change to process_example()
* add changeset
* changes for all components until dataset.py
* rename
* fix checkboxgroup
* format
* changes
* add changeset
* changes
* add changeset
* radio
* add changeset
* changes
* add changeset
* changes
* examples
* remove print
* fix
* clean
* add changeset
* fix tests
* fix tests
* fix test
* fix
* add changeset
* fix video example
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
Dawood Khan
523b6bc534
gr.update(value=[])
for gr.File()
clears it (#6980 )
...
* bug fix
* add changeset
* Update js/file/shared/File.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2024-01-10 19:14:33 -05:00
pngwn
8b5174c96d
chore: update versions ( #7002 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-10 15:31:28 -08:00
Ali Abdalla
a7db8c1b8a
Add env to lite build ( #7000 )
...
* add venv
* comma
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 15:22:22 -08:00
Abubakar Abid
576b7ce827
lite build fix: install build package ( #6999 )
...
* install build package
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 14:59:18 -08:00
Ali Abdalla
523c08fe30
Design changes to Playground ( #6997 )
...
* design changes to playground
* formatting
* add changeset
* share your app
* tweak
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-11 02:39:20 +04:00
pngwn
8f69f9ef50
chore: update versions ( #6960 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 01:42:25 +04:00
pngwn
0b1f68d2db
bump lite to match gradio ( #6996 )
...
* bump lite to match gradio
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 13:14:53 -08:00
Ali Abdalla
71aab1c617
Add README to @gradio/lite ( #6989 )
...
* add readme
* add changeset
* Update js/lite/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/lite/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* remove private from lite package.json
* add note on cdn
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-10 23:20:00 +04:00
Yuichiro Tachibana (Tsuchiya)
5d00dd37ca
Make <UploadProgress /> Wasm-compatible ( #6965 )
...
* Make <UploadProgress /> Wasm-compatible
* add changeset
* Fix <DownloadLink /> not to prefetch the data in the Wasm mode
* add changeset
* Fix <DownloadLink /> to check the `window` object existence for SSR
* Lite: Fix and improve the file upload progress SSE (#6978 )
* Update the Wasm ASGI connection to be able handle ReadableStream, which is used for example in <Upload />"
* Fix wasm_proxied_fetch() not to pass a leading '?' in the query_string to WorkerProxy.httpRequest() because it's required by the ASGI spec
* Fix FileUploadProgress.update() to merge a new item to the existing one in the queue
* Fix the SSE stream async task in the /upload_progress endpoint removing an unreached code block. `await asyncio.sleep()` has been moved from the unreached block to a live location, so the stream cadence has been reduced
* Fix `FileUploadProgress` to manage the `is_done` flag independent from the queue because it has a different semantics and checking it is a priority over reading other progress events to abort the SSE stream when uploading is done
* Refactoring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-10 21:27:58 +04:00
Hannah
0f0498bf97
Ensure Chatbot theme text size is set correctly ( #6958 )
...
* set font size to text body variable
* revert comment
* add changeset
* remove line height
* add function to adjust body text size to prevent breaking change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 13:41:35 +01:00
aliabid94
6e285be8ed
Fix the reloader ( #6983 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-09 15:18:07 -08:00
Yuichiro Tachibana (Tsuchiya)
5e0016267f
Make <Gallery /> Wasm-compatible ( #6967 )
...
* Use @gradio/image/shared/Image.svelte in the Gallery component for Wasm support
* Make the download button on the Gallery component Wasm-compatible
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-09 11:34:46 +09:00
Hannah
793bf8f7b1
Display pending file in <Upload />
while waiting for upload request ( #6969 )
...
* show file to be uploaded before request begins
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-08 17:36:41 +01:00
Dawood Khan
640b7fe052
Fix issue with Webcam Recording ( #6885 )
2024-01-05 19:18:59 -05:00
pngwn
3a0a11cf42
chore: update versions ( #6882 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 16:02:25 -08:00
aliabid94
6c863af92f
Fix functional tests ( #6931 )
...
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-04 15:39:16 -08:00
Hannah
d361a0f179
Ensure camera settings only update when necessary in Model3D ( #6871 )
...
* change reset_camera_position reactivity logic
* check for changes when resetting scene
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 10:39:57 -08:00
Abubakar Abid
b1b78c2168
Fix .select
for gr.Image
, gr.CheckboxGroup
( #6942 )
...
* fix .select for Image, CheckboxGroup
* add changeset
* generate notebook
* fix
* add changeset
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 07:57:18 -08:00
Abubakar Abid
e671e5415f
Allow gr.ClearButton
and gr.DuplicateButton
to be made hidden (and otherwise updated) ( #6932 )
...
* clear visible
* test
* other buttons
* add changeset
* move resource to block cache
* revert
* Revert "revert"
This reverts commit 9830f253ac
.
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-03 11:29:16 -08:00
D
459c5dc989
replacing distutils.StrictVersion dependency for Python 3.12 ( #6938 )
...
* replacing distutils.StrictVersion dependency with packaging.version.Version after distutils deprecation (in 3.10) and removal in Python 3.12 (see https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated )
* add changeset
* remove distutils
* add changeset
---------
Co-authored-by: daniel <daniel@tfc.ai>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-03 08:05:40 -08:00
Yuichiro Tachibana (Tsuchiya)
f742d0e861
Lite: Support AnnotatedImage on Wasm ( #6133 )
...
* Make AnnotatedImage Wasm-compatible
* add changeset
* Fix AnnotatedImage.svelte to render `<img>`s immediately and update their `src` values after those are resolved asynchronously
* Fix comments
* add changeset
* Rename a variable for consistency with `Image.svelte`
* Fix a variable name
* Rename to
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:43:34 +04:00
Yuichiro Tachibana (Tsuchiya)
bd11d6e570
Remove the styles on the audio elements in the Chatbot component ( #6899 )
...
* Remove the styles on the audio elements in the Chatbot component
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:41:59 +04:00
Yuichiro Tachibana (Tsuchiya)
4511d57c46
Fix the aria-label attrs in gr.Chatbot()
( #6900 )
...
* Fix the aria-label attrs in `gr.Chatbot()`
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:41:28 +04:00
Yuichiro Tachibana (Tsuchiya)
fb9c6cacd7
Lite: Chatbot ( #6897 )
...
* Make Chatbot Wasm-compatible
* Make UploadButton Wasm-compatible
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:41:10 +04:00
Ali Abdalla
a5f3d2bef2
Fix broken redirects and guides in website ( #6913 )
...
* fix broken redirects
* fix broken redirects
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-30 22:31:17 +04:00
Yuichiro Tachibana (Tsuchiya)
8a093e23d7
Add a dev instruction for lite in SharedWorker mode ( #6778 )
...
* Add a dev instruction for lite in SharedWorker mode which is confusing like https://github.com/gradio-app/gradio/pull/6398#issuecomment-1849880619
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-27 00:29:43 -08:00
Yuichiro Tachibana (Tsuchiya)
8333db83ac
Fix the Wasm worker to initialize the app directories ( #6887 )
...
* Fix the Wasm worker to initialize the app directories
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-27 00:27:36 -08:00
pngwn
227221f887
chore: update versions ( #6855 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-22 13:05:17 -08:00
Freddy Boulton
d406855795
Fix JS Client when app is running behind a proxy ( #6863 )
...
* Fix subdomain
* add changeset
* lint
* Ts check
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-22 15:00:42 -05:00
Abubakar Abid
48d6534b40
Add show_api
parameter to events, and fix gr.load()
. Also makes some minor improvements to the "view API" page when running on Spaces ( #6846 )
...
* show api
* chnages
* add changeset
* changes
* changes to interface
* set show_api=False
* changes
* development
* examples
* changes
* add changeset
* changes
* changes
* format
* add changeset
* add changeset
* changes
* revert
* fixes
* is vaild
* push
* fixes'
* fixing
* fixes
* format
* fixed
* demo
* test
* format
* add changeset
* fix tests
* fix
* format
* cleanup
* remove
* fixes
* add test
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-22 11:59:02 -08:00
Hannah
15c97c6d34
Fix webcam when streaming=True
( #6865 )
...
* show webcam when streaming value is true
* add story
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-21 19:50:11 +01:00
Dawood Khan
e974cf045c
Custom JS Guide ( #6839 )
...
* guide
* fix
* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* guide fix
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-20 21:16:21 -05:00
Abubakar Abid
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>
2023-12-20 11:07:48 -08:00
renovate[bot]
e528f98b88
chore(deps): update dependency mrmime to v2 ( #6854 )
...
* chore(deps): update dependency mrmime to v2
* 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>
2023-12-20 10:15:15 -08:00
pngwn
160e389580
chore: update versions ( #6825 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 16:17:10 -08:00
Abubakar Abid
de24424d30
skip the right functional test ( #6845 )
...
* skip functional test 2
* format
2023-12-19 16:07:52 -08:00
Abubakar Abid
17a1eb63e0
skip flaky functional test ( #6844 )
2023-12-19 15:29:45 -08:00
pngwn
846d52d1c9
Fix md highlight ( #6842 )
...
* ensure gr.Markdown instances have their own instance of the markdown renderer
* fix demo
* add changeset
* skopip test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-19 20:42:41 +00:00
aliabid94
828fb9e6ce
Refactor queue so that there are separate queues for each concurrency id ( #6814 )
...
* change
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-19 11:42:56 -08:00
Hannah
73268ee2e3
Improve source selection UX ( #6766 )
...
* Add new source option styling for pasting from clipboard
Use SourceSelect in Image component
* prevent device selection cut off
tweak source selection ux
* Check for dupe sources in source selection
Set sources[0] to active_source in Image
* tweaks
* tweak
* add image interaction test
* more tests
* improve light/dark mode color contrast
* add changeset
* remove unused prop
* add no device found placeholder
change T<sources> -> T<source_types>
* style tweak
* allow pasting on click + add e2e test
* fix e2e tests
* formatting
* add timeout to e2e test
* tweak
* tweak test
* change `getByLabel` to `getByText`
* value tweak
* logic tweak
* test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-19 19:24:08 +00:00
Freddy Boulton
992d540c3d
E2E test that Queue Full does not break the client. Also that backend exceptions don't break the client or queue. ( #6812 )
...
* Add test
* Dont launch new app lol
* Remove unused imports
2023-12-18 15:13:44 -05:00
pngwn
f3abde8088
Add an option to enable header links for markdown ( #6831 )
2023-12-18 20:06:20 +00:00
Hannah
1401d99ade
Fix ImageEditor
interaction story ( #6809 )
...
* fix test + align + symbol to centre of button
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-18 15:07:34 +00:00
pngwn
9ea7b6f05c
chore: update versions ( #6797 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 15:39:46 -08:00
Abubakar Abid
c352811f76
Adds docstrings for gr.WaveformOptions
, gr.Brush
, and gr.Eraser
, fixes examples for ImageEditor
, and allows individual images to be used as the initial value
for ImageEditor
( #6799 )
...
* tweaks
* add changeset
* adding image editor
* changes
* add changeset
* docs
* add changeset
* add changeset
* refactor
* format
* example
* add changeset
* image editor
* add changeset
* commit
* added test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-15 10:43:39 -08:00
pngwn
dc131b64f0
chore: update versions ( #6779 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 13:14:57 -08:00
Freddy Boulton
51e241addd
Fix flaky CI tests (again 😓 ) ( #6780 )
...
* network idle
* Use **/upload
* Test flakes
* Fix pythont tests
* add changeset
* Use right wait
* upload
* trigger ci
* swap order
* networkidle❓
* lint'
* df
* 2 workers
* networkidle
* Fix cli test
* pause
* 3.8 fix
* 3.8
* no promise.all
* trigger ci
* Add code
* mark xfail
* trigger ci
* timeout
* Empty
* Flake
* test
* Flakes
* change test
* awaits
* cleanup
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-14 12:40:36 -08:00
Dawood Khan
5d51fbce78
Fixes Drag and Drop for Upload ( #6525 )
...
* fix
* add changeset
* tests
* Update package.json
* Hotfix: version on changelog (#6559 )
* clog version
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix version in other changelog (#6561 )
* Fix version in other changelog
why do we have 2?
* remove changeset
* Ensure Chatbot messages are properly aligned when `rtl` is true (#6574 )
* fix text alignment when rtl is true
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improve like/dislike functionality (#6572 )
* amend like/dislike logic
* add like/dislike to chatbot demo and add e2e test
* add changeset
* e2e test changes
* revert chatbot_component changes
* tweak
* generate notebooks
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix typo envrion -> environ (#6585 )
* Feat: make UploadButton accept icon (#6584 )
* feat: make UploadButton accept icon
* add changeset
* add proxy url prop
* add stories
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Make FileExplorer work on python 3.8 and 3.9. Also make it update on changes to root, glob, or glob_dir (#6550 )
* Add code
* add changeset
* add changeset
* Add test
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix uploaded file wasn't moved to custom temp dir at different disks (#6565 )
* Fix uploaded file wasn't moved to custom temp dir at different disks
* add changeset
* Update routes.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Fix the docstring decoration (#5885 )
* Fix the docstring of the `Slider` class
* add changeset
* Update the JSON file generator to output a new field .styled_description to render the inline code syntax in the description field
* add changeset
* Update style_types() to deal with backticks and single asterisks
* Update the inline style converter to use regex for the curly bracket syntax as well
* Revert `style_types()` not to touch the `description` field and update the frontend code to apply styling to such formatted texts on Svelte's side
* Apply the inline styler to other `.description` field appearances
* Apply the inline styler to `.preprocessing`, `.postprocessing`, `.examples-format`, `.events`, and `*.parameters.doc`
* Stop applying HTML styles to the JSON data, instaed apply HTML escaping
* Escape HTML tokens in .parameters[]["doc"] too
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* chore(deps): update all non-major dependencies (#6593 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update dependency jsdom to v23 (#6582 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update zh-CN.json (#6512 )
* Update zh-CN.json
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix: Gradio Client work with private Spaces (#6602 )
* client with private space
* add changeset
* lint
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update file_explorer.py - Fixing error if nothing selected in file_count=single mode (return None rather) (#6607 )
* Update file_explorer.py
Fixing error if nothing selected in file_count=single mode (return None rather)
* add changeset
* added unit tests
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove 2 slider demos from docs (#6624 )
* remove 2 slider demos
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix encoding issue #6364 of reload mode (#6622 )
* fix: configure default encoding as utf-8
* apply doc change for the fix
* apply cn doc change for the fix
* add changeset
* Lint
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Quick Image + Text Component Fixes (#6635 )
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improve video trimming and error handling (#6566 )
* amend trimming logic and return original file when error occurs
* add interactive story test
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add `show_recording_waveform` to Audio (#6551 )
* add show_recording_waveform
* add changeset
* add animation
* Refactor audio component and waveform options
* formatting
* add margin before audio controls
* amend default values
* expose gr.WaveformOptions
* Tweak waveform options types and handle none
* add waveform_options to reverse_audio
* tweak bool typing
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore(deps): update dependency chromatic to v10 (#6619 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update chromaui/action action to v10 (#6618 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Add concurrency_limit to ChatInterface, add IDE support for concurrency_limit (#6653 )
* concurrency limit chat interface
* add changeset
* Update gradio/chat_interface.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* format (#6658 )
* Removes smooth scrolling from website (#6650 )
* smooth scrolling with css
* add changeset
* formatting
* remove smooth scrolling
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (#6575 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix reload mode warning about not being able to find the app (#6660 )
* Fix warning
* add changeset
* Use *
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update HF token used in CI tests (#6671 )
* fix tests
* format
* fixes
* add changeset
* fixes
* fix
* fix
* update
* update
* test client
* format
* hf token 2
* add changeset
* add env
* add envs
* tests
* env
* fixes
* test external
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* use gr.Error for audio length errors (#6672 )
* use gr.Error for audio length errors
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Issue 5245: consolidate usage of requests and httpx (#6598 )
* issue 5245 commit 1
* formatted
* add changeset
* fixes
* fixes
* make changes in client too
* remove requests from client
* add changeset
* add changeset
* Fixes to test_utils.py in client
* fixes in client utils.py and test_utils.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Remove Discourse Forum Link from Website (#6679 )
* remove forum link
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Tweak to our bug issue template (#6677 )
* template
* add timeouts
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Set gradio api server from env (#6666 )
* Use GRADIO_API_SERVER env
* Format the code
* add changeset
* Use env GRADIO_SHARE_SERVER_ADDRESS as default share_server_address
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Render each app in the PR's spaces preview in a separate page (#6657 )
* Use template response
* minor fix
* Return type hint
* add changeset
* Remove return types
* response_class=None
* Use relative path
* SPA
* remove pydantic pin
* Revert
* delete changeset
* Overflow hidden on body
* text gray
* Collapsible sidebar
* max-height
* Use search params
* document.location.search
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* perf guide (#6673 )
* switch from black to ruff formatter (#6543 )
* migrate from black to ruff
* fix script and dependencies
* applying ruff
* add changeset
* add changeset
* address ruff feedback
* replace linter
* fixed typing
* fix typing
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Cause `gr.ClearButton` to reset the value of `gr.State` (#6680 )
* state
* note
* add changeset
* buttons
* clear button
* lint
* if
* clear'
* reset state
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix dropdown blur bug when values are provided as tuples (#6694 )
* fix dropdown blur bug
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* type fix
* test
* Remove the styles from the Image/Video primitive components and Fix the container styles (#6726 )
* Remove the styles from the Image/Video primitive components and Fix the container styles
* add changeset
* Fix image example size styles
* Remove border from image/Example with type=gallery
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* test fix
* add changeset
* test fix
* add changeset
* test
* test fix
* test fix audio video
* format
* fix obj file issue
---------
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>
Co-authored-by: Simon Duerr <dev@simonduerr.eu>
Co-authored-by: Xiang Liao <liao1120x@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Dody Suria Wijaya <dody@cryptolab.net>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: yanlin <59528590+cibimo@users.noreply.github.com>
Co-authored-by: v-chabaux <149407738+v-chabaux@users.noreply.github.com>
Co-authored-by: Lihao Lei <leilei199708@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: cswamy <101974014+cswamy@users.noreply.github.com>
Co-authored-by: aisensiy <aisensiy@163.com>
Co-authored-by: D V <77478658+DarhkVoyd@users.noreply.github.com>
2023-12-13 14:48:39 -08:00
pngwn
1459119c6e
chore: update versions ( #6670 )
...
* chore: update versions
* change
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
2023-12-12 18:32:54 -08:00
Freddy Boulton
c9673cacd6
Fix directory-only glob for FileExplorer ( #6689 )
...
* Fix glob
* add changeset
* Fix test
* lint
* sort
* Remove empty
* Select directory + test
* Workign fix
* WOrkign fix
* Directory click 😅
* add changeset
* Fix test
* Add dirs
* Select directory + test
* WOrkign fix
* Directory click 😅
* WIP
* add code
* Lint
* Use same color as file icon
* Fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 16:39:11 -08:00
aliabid94
6a9151d5c9
Remove progress animation on streaming ( #6709 )
...
* changes
* add changeset
* changes
* chagnes
---------
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 16:01:40 -08:00
aliabid94
d76bcaaaf0
Fix api event drops ( #6556 )
...
* changes
* changes
* add changeset
* changes
* changes
* changes
* changs
* chagnes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes~git push
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-12 15:24:46 -08:00
Yuichiro Tachibana (Tsuchiya)
67ddd40b4b
Lite v4 ( #6398 )
...
* Fix vite.config.js detecting the development mode
* Fix the imports of @gradio/theme in js/app/src/lite/index.ts
* [WIP] Install Pydantic V1 and mock the RootModel class
* Remove Wasm WebSocket implementations
* Move ASGI-HTTP conversion logic from the worker to the worker-proxy so we have fine controls on the ASGI connection at the worker-proxy level for the HTTP stream connection impl in the future
* Fix asgi-types.ts
* Create `WasmWorkerEventSource` and inject the `EventSource` creation in @gradio/client
* Mock Pydantic V2's BaseModel
* Fix Pydantic V1 installation
* Make <ImageUploader /> and <ImagePreview /> Wasm-compatible
* Create `getHeaderValue()`
* Create `<DownloadLink />` for Wasm-compatible download and fix `<ImagePreview />` to use it
* Make `gr.Video()` Wasm-compatible avoiding unnecessary execution of ffprobe
* Move `<DownloadLink />` to @gradio/wasm and use it in `<VideoPreview />` too
* Fix `<DownloadLink />` making `href` optional and adding `rel="noopener noreferrer"`
* Make the download button of `<StaticAudio>` and `<Code />` Wasm-compatible
* Make the download button of `<FilePreview />` Wasm-compatible
* Improve the RootModel mock class for `.model_dump()` and `.model_json_schame()` to work
* Make `<UploadProgress />` Wasm-compatible
* Fix `WorkerProxy.httpRequest()` to use `decodeURIComponent()` to process `path` and `query_string`
* Fix `<InteractiveAudio />` to make its upload feature Wasm-compatible
* [WIP] Revert "Make `<UploadProgress />` Wasm-compatible"
This reverts commit f96b4b7d5e92bb488cfe1939d25063366f714178.
* Fix Image styles
* Fix `<AudioPlayer />`'s `create_waveform()` to be Wasm-compatible
* add changeset
* formatting
* Fix js/image/shared/Image.svelte to render <img> immediately
* Fix js/image/shared/Image.svelte to avoid race condition
* Fix js/image/shared/Image.svelte
* Fix js/image/shared/Image.svelte
* Fix js/image/shared/Image.svelte removing unnecessary styles
* Fix js/video/shared/Video.svelte to use the passed immediately without waiting for the async resolution
---------
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>
2023-12-12 22:10:16 +00:00
Dawood Khan
9a6ff704cd
Fix issue with head
param when adding more than one script tag ( #6639 )
...
* fix
* Revert "fix"
This reverts commit 86783c834d
.
* fix
* add changeset
* fix
* add external js file functionality
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 14:00:44 -08:00
pngwn
f3c4d78b71
reload on css changes + fix css specificity ( #6738 )
...
* reload on css changes + fix css specificity
* add changeset
* tweak
* fix rollup version
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 15:32:38 +00:00
Yuichiro Tachibana (Tsuchiya)
21cfb0acc3
Remove the styles from the Image/Video primitive components and Fix the container styles ( #6726 )
...
* Remove the styles from the Image/Video primitive components and Fix the container styles
* add changeset
* Fix image example size styles
* Remove border from image/Example with type=gallery
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 23:15:02 +01:00
Hannah
3240d042e9
Add editable
parameter to Audio ( #6745 )
...
* add editable param to audio and add story
* add changeset
* fix test
* fix test again
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 18:42:21 +01:00
Freddy Boulton
21ce721bbd
Custom component gallery ( #6477 )
...
* initial commit
* First draft
* add changeset
* better close button
* Improve card
* Switch
* Add code
* Add code
* Use icons folder + snake_case
* lockfile fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 11:59:36 -05:00
Hannah
4d1cbbcf30
Allow passing height and width as string in Blocks.svelte
( #6569 )
...
* Allow % string in blocks
Modify docstring in chatbot
* add % height chatbot story
* add changeset
* typo 🥲
* func tweak
* formatting
* add changeset
* add changeset
* add str to height params
* update docstring for height
* Allow passing width as a string
Update width docstrings
* formatting
* add changeset
* add width/height param description
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 15:58:04 +01:00
Yuichiro Tachibana (Tsuchiya)
bdf81fead8
Lite: Set the home dir path per appId at each runtime ( #6432 )
...
* Set the home dir path per appId at each runtime
* Add a comment
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-12-11 15:31:25 +01:00
Yuichiro Tachibana (Tsuchiya)
9a5811df92
Fix the download button of the gr.Gallery()
component to work ( #6487 )
...
* Fix the download button of the `gr.Gallery()` component to work
* Refactoring js/gallery/shared/Gallery.svelte
* Fix `gr.Gallery()` to set `orig_name` for URLs
* Fix Gallery.postprocess()
* Fix `download()` to fallback to `window.open()` when CORS is not allowed
* Fix `gr.Gallery` to leave as None so it will be replaced with a local cache path and restore the `<a>` tag-based download feature on the frontend
* Align a variable name to its type name
* Fix Gallery's tests
* Fix the frontend test for gallery
* Revert "Fix `gr.Gallery` to leave as None so it will be replaced with a local cache path and restore the `<a>` tag-based download feature on the frontend"
This reverts commit d754980cc27ded760bfc26df4310f913c2c6944a.
* Revert "Fix Gallery's tests"
This reverts commit 4e2aa3fff1
.
* Revert "Fix the frontend test for gallery"
This reverts commit 007caa23e7
.
* Fix for linter
* Add a test about the download button
* Fix type defs on Gallery.postprocess
* Improve TestGallery
* add changeset
* 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>
* Revert "Update gradio/components/gallery.py"
This reverts commit 4d6e127305
.
* Revert "Update gradio/components/gallery.py"
This reverts commit f2bfad0744
.
* Use `tuple` instead of `typing.Tuple`
* Revert "Use `tuple` instead of `typing.Tuple`"
This reverts commit 69ab93cad4
.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-09 17:58:19 +01:00
Yuichiro Tachibana (Tsuchiya)
5177132d71
Lite: Fix the isMessagePort()
type guard in js/wasm/src/worker-proxy.ts ( #6416 )
...
* Fix the `isMessagePort()` type guard in js/wasm/src/worker-proxy.ts
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-12-08 20:32:27 +01:00
Hannah
128ab5d65b
Ensure checked files persist after FileExplorer rerenders ( #6691 )
...
* add tree_updated flag
* add changeset
* add changeset
* test
* generate notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-08 19:27:25 +01:00
Hannah
053bec98be
Improve CSS token documentation in Storybook ( #6399 )
...
* remove width and heights from icons
* add changeset
* add global css vars (light)
* add changeset
* add changeset
* Remove component stories (will document these elsewhere)
* remove rtl param in chatbot story for non rtl text
* formatting
* remove redundant class
* add changeset
* fix row story
* fix broken groot file stories
* revert lock changes
* add changeset
* lockfile
* pnpm lock
* remove colour from webcam icons
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-08 16:23:14 +01:00
renovate[bot]
6b1401c514
chore(deps): update dependency marked to v11 ( #6603 )
...
* chore(deps): update dependency marked to v11
* add changeset
* fixes
* add changeset
* tweaks
* tweaks
* tweaks
---------
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>
2023-12-08 11:32:42 +00:00
renovate[bot]
95827bbe6e
Update dependency @sveltejs/vite-plugin-svelte to v3 ( #6654 )
...
* Update dependency @sveltejs/vite-plugin-svelte to v3
* 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>
2023-12-07 20:22:19 +00:00
Freddy Boulton
d95d647894
Fix tests ( #6701 )
2023-12-07 14:22:16 -05:00
Hannah
798eca524d
Fit video media within Video component ( #6698 )
...
* Add mirror-wrap styling in Player.svelte
* add changeset
* add vertical video story
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-07 18:19:09 +01:00
Abubakar Abid
dfc61ec4d0
Fix dropdown blur bug when values are provided as tuples ( #6694 )
...
* fix dropdown blur bug
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-07 08:03:11 -08:00
Ali Abdalla
abe9785c50
Remove Discourse Forum Link from Website ( #6679 )
...
* remove forum link
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-06 01:52:05 +00:00
pngwn
fce80ac804
chore: update versions ( #6575 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-04 16:14:12 -08:00
Ali Abdalla
d59ceec99d
Removes smooth scrolling from website ( #6650 )
...
* smooth scrolling with css
* add changeset
* formatting
* remove smooth scrolling
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 23:43:52 +00:00
Abubakar Abid
98b15c24a5
format ( #6658 )
2023-12-04 14:37:04 -08:00
Hannah
8fc562a8ab
Add show_recording_waveform
to Audio ( #6551 )
...
* add show_recording_waveform
* add changeset
* add animation
* Refactor audio component and waveform options
* formatting
* add margin before audio controls
* amend default values
* expose gr.WaveformOptions
* Tweak waveform options types and handle none
* add waveform_options to reverse_audio
* tweak bool typing
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-04 14:00:51 -08:00
Hannah
d548202d2b
Improve video trimming and error handling ( #6566 )
...
* amend trimming logic and return original file when error occurs
* add interactive story test
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 13:38:55 -08:00
Dawood Khan
b639e04074
Quick Image + Text Component Fixes ( #6635 )
...
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 13:03:32 -08:00
yanlin
4f040c752b
Update zh-CN.json ( #6512 )
...
* Update zh-CN.json
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-29 03:51:51 +00:00
Yuichiro Tachibana (Tsuchiya)
9919b8ab43
Fix the docstring decoration ( #5885 )
...
* Fix the docstring of the `Slider` class
* add changeset
* Update the JSON file generator to output a new field .styled_description to render the inline code syntax in the description field
* add changeset
* Update style_types() to deal with backticks and single asterisks
* Update the inline style converter to use regex for the curly bracket syntax as well
* Revert `style_types()` not to touch the `description` field and update the frontend code to apply styling to such formatted texts on Svelte's side
* Apply the inline styler to other `.description` field appearances
* Apply the inline styler to `.preprocessing`, `.postprocessing`, `.examples-format`, `.events`, and `*.parameters.doc`
* Stop applying HTML styles to the JSON data, instaed apply HTML escaping
* Escape HTML tokens in .parameters[]["doc"] too
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-11-28 06:03:20 -05:00
Freddy Boulton
315659817e
Make FileExplorer work on python 3.8 and 3.9. Also make it update on changes to root, glob, or glob_dir ( #6550 )
...
* Add code
* add changeset
* add changeset
* Add test
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-28 05:27:45 -05:00
Xiang Liao
9bcb1da189
Feat: make UploadButton accept icon ( #6584 )
...
* feat: make UploadButton accept icon
* add changeset
* add proxy url prop
* add stories
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-27 09:31:21 +00:00
Hannah
206af31d7c
Improve like/dislike functionality ( #6572 )
...
* amend like/dislike logic
* add like/dislike to chatbot demo and add e2e test
* add changeset
* e2e test changes
* revert chatbot_component changes
* tweak
* generate notebooks
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-24 19:03:18 +01:00
Hannah
2b625ad940
Ensure Chatbot messages are properly aligned when rtl
is true ( #6574 )
...
* fix text alignment when rtl is true
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-24 18:15:32 +01:00
pngwn
da6814d226
chore: update versions ( #6554 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-22 22:11:41 -05:00
Ali Abdalla
3e60c13b91
Add 3.x docs to the website! ( #6549 )
...
* add 3.x version to docs
* support for 3.x
* fix guide links in docs
* changes
* changes
* working
* working
* fix
* add changeset
* formatting
* fix 3.50.2
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 16:26:33 -08:00
pngwn
2c39174343
chore: update versions ( #6514 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-22 18:43:10 -05:00
Dawood Khan
13ef0f0caa
Quick fix: Make component interactive when it is in focus ( #6530 )
...
* fi
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-22 18:12:28 -05:00
renovate[bot]
6d3fecfa42
chore(deps): update all non-major dependencies ( #6537 )
...
* chore(deps): update all non-major dependencies
* add changeset
* fix
---------
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: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
2023-11-22 18:04:27 -05:00
Hannah
a424fdbb23
Ensure audio waveform autoplay
updates ( #6546 )
...
* prevent autoplay when autoplay is false
* tweak
* tweak
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 20:52:10 +01:00
Hannah
1bbd6cab3f
Fix undefined data
TypeError in Blocks ( #6536 )
...
* add undefined check
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 11:39:56 +01:00
Hannah
830b6c0e6e
Process and convert .svg files in Image
( #6500 )
...
* process and convert svg files with cariosvg
* add changeset
* remove svg2png and keep svg format
* add svg image test
* formatting
* revert typing format
* update docstrings
* Remove postprocessing change
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-22 00:50:40 +01:00
Ali Abdalla
e2810fcfc8
Fix redirected paths on website ( #6533 )
...
* prerender redirects
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 14:06:17 -08:00
pngwn
96290d304a
tweak deps ( #6532 )
...
* tweak deps
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 16:12:17 -05:00
Abubakar Abid
901f3eebda
Allow reselecting the original option in gr.Dropdown
after value has changed programmatically ( #6517 )
...
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 10:58:07 -08:00
Yuichiro Tachibana (Tsuchiya)
f94db6b731
File table style with accessible file name texts ( #6520 )
...
* File table style with accessible file name texts
* Fix for lint
* add changeset
* Remove unnecessary style
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 00:46:37 +09:00
Yuichiro Tachibana (Tsuchiya)
71f1a1f993
Mark FileData.orig_name
optional on the frontend aligning the type definition on the Python side ( #6511 )
...
* Mark `FileData.orig_name` optional on the frontend aligning the type definition on the Python side
* Replace `var` with `const` and rename a variable
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-21 00:07:24 -08:00
renovate[bot]
46f13f4968
chore(deps): update all non-major dependencies ( #6296 )
...
* 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: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-21 00:06:02 -08:00