* Use orjson to serialize dict including np.array
* add changeset
* Update json_component demo and add an E2E test using it
* Rename demo/json_component -> demo/json_component_blocks
* Add json_component_interface demo and an E2E test using it
* Fix to await assertion promises
* Revert renaming of json_component demo
* add changeset
* Rename js/app/test/json_component_blocks.spec.ts -> js/app/test/json_component.spec.ts
* Revert changes in routes.py and add orjson to json_component.py
* Update gr.Checkbox.postprocess to ensure a bool value is returned
* add changeset
* Remove the if-block in gr.Checkbox.postprocess handling NumPy arrays as they are not reasonable values to be interpreted as checkbox's value
* Update gr.JSON's docstring
* Add test/components/test_json_component.py
* Remove JSON component E2E tests
* Update gr.JSON's docstring
* docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* 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>
* Logout user if oauth token has expired
* add changeset
* add changeset
* mark flaky test as flaky
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* Fix an enconding issue in gradio/components/code.py
Changes Made:
Modified the postprocess function in gradio/components/code.py to handle file encoding properly.
Added encoding="utf-8" parameter to the open function when reading code files. I hardcoded UTF-8 because I couldn't figure out how to specify the encoding, similar to the fix in gradio-app#8075. My issue is gradio-app#8076
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix bug causing Hot Reload failure in code containing non-English languages due to missing encoding specification (#8070)
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* 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>
* Update `typer` to drop `[all]` as it is no longer needed
Source: https://typer.tiangolo.com/release-notes/#0121
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* guide is created
* LayoutBase class implementation is added
* Implementations are added
* some writing mistakes are fixed
* writing mistake check is done
* simple example is added
* some additions are made
* the example is tested with given code snippets
* conclusion part is added
* space example is added
* some parts are refactored
* introduction is updated
* wrapping-layouts.md file is put under the other tutorials
* fixed markdown issues
* Example is written again
* remove the unnecessary implementations
* render function desc of LayoutBase is changed
* guide is made much simpler
* the guide is ready for visual check
* most of the bullet point elements are removed
* linguistic errors are fixed & ready for view check
* 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>
* 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>
* Add an explicit dependency of `urllib3` and update `processing_utils.save_url_to_cache` to use `urllib3` for Lite support
* add changeset
* Update requirements.txt
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add changeset
* update test requirements
* update test reqs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>