Hannah
b9afe93915
Rename eventSource_Factory
and fetch_implementation
( #8209 )
...
* rename eventSource_factory -> stream_factory + rename event_source -> steam
* rename fetch_implementation -> fetch
* rename fetch to _fetch due to global.fetch conflict
* add changeset
* format
* format
* format
* format
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 15:24:19 +02:00
renovate[bot]
f5b710c919
chore(deps): update dependency eslint to v9 ( #8121 )
...
* chore(deps): update dependency eslint to v9
* update deps + fix things
* add changeset
* fix preview
* add changeset
* lockfile
* format
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 09:57:08 +01:00
Hannah
cf52ca6a51
Ensure connectivity to private HF spaces with SSE protocol ( #8181 )
...
* add msw setup and initialisation tests
* add changeset
* add eventsource polyfill for node and browser envs
* add changeset
* add changeset
* config tweak
* types
* update eventsource usage
* add changeset
* add walk_and_store_blobs improvements and add tests
* add changeset
* api_info tests
* add direct space URL link tests
* fix tests
* add view_api tests
* add post_message test
* tweak
* add spaces tests
* jwt and protocol tests
* add post_data tests
* test tweaks
* dynamically import eventsource
* revet eventsource imports
* add jwt param to sse requests
* add stream test
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-02 23:05:56 +02:00
Freddy Boulton
d0a759f3df
Pass Error status in /dev/reload stream ( #8106 )
...
* get error message
* Support multiple clients
* add changeset
* add changeset
* add changeset
* Display in UI
* console.error the python traceback
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-01 22:21:54 +00:00
pngwn
6a218b4148
rework upload to be a class method + pass client into each component ( #8179 )
...
* rework upload to be a class method + pass client into each component
* add changeset
* Update client/js/src/utils/upload_files.ts
* fix storybook
* review comments
* Apply suggestions from code review
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* format
* ts fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-01 14:55:41 +00:00
Yuichiro Tachibana (Tsuchiya)
a81e36967c
Remove hatch installation in js/app/package.json which is no longer needed ( #8174 )
...
* Remove hatch installation in js/app/package.json which is no longer needed
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-01 07:45:38 +09:00
Hannah
bed2f82e22
Implement JS Client tests ( #8109 )
...
* add msw setup and initialisation tests
* add changeset
* add walk_and_store_blobs improvements and add tests
* add changeset
* api_info tests
* add direct space URL link tests
* fix tests
* add view_api tests
* add post_message test
* tweak
* add spaces tests
* jwt and protocol tests
* add post_data tests
* test tweaks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-30 18:50:38 +02:00
Yuichiro Tachibana (Tsuchiya)
611c9273a3
Lite wheel optimization ( #7855 )
...
* Add `pull_request.branches.main` as a trigger of the `publish` workflow
* [WIP] Comment out the publish steps
* Package and upload the NPM package for debug
* Skip the copy_frontend.py hook in the Lite build
* add changeset
* [WIP] Show gradio files
* [WIP] Show gradio files
* Comment out installing the gradio and gradio_client libraries
* Restore installing gradio_client because it's used by `python js/_website/generate_jsons/generate.py` that follows
* Restore installing gradio because it's used by `python js/_website/generate_jsons/generate.py` that follows
* Add code
* Revert "[WIP] Show gradio files"
This reverts commit e15fef29bd14671576e64d94d3b844786ebe7e83.
* Build the gradio wheel with the custom lite target
* add changeset
* Revert "[WIP] Show gradio files"
This reverts commit aef053f9caad203c7e1bbfa15e9f9e536f77442a.
* Revert "Skip the copy_frontend.py hook in the Lite build"
This reverts commit ca296d0e4e169adbb6af3705561869aa8c9037b7.
* Update .github/actions/install-frontend-deps/action.yml for hatch installation
* [WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch
* Revert "[WIP] Fix test-functional.yml and .github/actions/install-all-deps/action.yml to call the setup actions in this branch"
This reverts commit 571823b4a05f7e41e0b3731d51c5bd86b2e17ddc.
* Comment-in lines in publish.yml
* Move Lite build from publish.yml to deploy-spaces.yml
* Use the build_lite option of install-all-deps instead of running the build command
* [TMP] Change the branch of action files
* Fix the hatch Lite build setting
* Return pnpm pack to deploy-space
* Revert "[TMP] Change the branch of action files"
This reverts commit fe4e1c8f210eb21ac7ee1bd4b219d35e1ae84c85.
* Remove dependencies for lite build
* [TMP] Change the branch of action files
* Revert "Remove dependencies for lite build"
This reverts commit 856a858c1f49d736bfeb056ba0ec7e9bc35af29c.
* Install packaging>=23.2
* [TMP] Show packaging version
* Fix pip install
* Fix
* Uninstall packaging once
* Use `pip install -U` instead of uninstalling the exiting version
* Revert "[TMP] Show packaging version"
This reverts commit 910b6bbde3dc8777c051bd5576813913d57959f7.
* Add `-U` flag
* Set packaging version as >=23.2
* Revert the changes on pip install
* Set packaging version as >=23.2 in requirements.txt
* Revert "Set packaging version as >=23.2"
This reverts commit 8aa77c8930815e69d7256886cad88b6da8361069.
* Fix hook name
* Revert "Set packaging version as >=23.2 in requirements.txt"
This reverts commit fbd605cbfb5d06706eacc0648a2e9d7816c9de1f.
* Revert "Revert the changes on pip install"
This reverts commit 81ff38a660635fce9cb17862a2072e4d169c3466.
* Add comments
* Revert "[TMP] Change the branch of action files"
This reverts commit 0d6aa48d75a842db9b3987212deffedb0c0ca51d.
* Revert the trigger of .github/workflows/deploy-spaces.yml
* Remove unused `node_auth_token` and `npm_token` inputs from the `install-all-deps` action
* [TMP] Trigger CI based on this PR
* Remove packging installation
* Revert "Remove packging installation"
This reverts commit 4a4f18de3a
.
* Revert "[TMP] Trigger CI based on this PR"
This reverts commit 6cea830c8e
.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-04-30 03:18:13 +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
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
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
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
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
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
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
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
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
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
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
Freddy Boulton
b78129d90f
Use asyncio.Event to stop stream in heartbeat route ( #7932 )
2024-04-05 11:57:49 -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
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
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
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
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
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
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
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