* 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>
* fix(chat_interface.py): fix 'submit_btn' not being set to 'None' when an instance of 'gr.MultimodalTextbox' is passed to 'textbox' argument of 'ChatInterface'
* fix typo
* add changeset
* fix(chat_interface.py): fix 'container' glitch for multimodal interface
* fix(chat_interface.py): fix bug where empty string is added to history when only a file or more was provided
* fix prior commit
* add changeset
* fix lines interchanged
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Document that show_copy_button in gr.Textbox is not visible when show_label=False
Remove dict_to_dataclass since its not used
* add changeset
* tweak wording
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* GRADIO_SHARE Environment Variable
An environment variable to force `share=True` when launching gradio, regardless of what was passed in as argument.
Useful for taking any Gradio-powered app and making them run with the gradio.live link WITHOUT having to update the code.
* make it work for both share=True and share=False
* correct parsing
- `"GRADIO_SHARE": "0"` => `False`
- `"GRADIO_SHARE": "1"` => `True`
* comment
* Apply GRADIO_SHARE only if it's not specified in code.
* one line
* remove line
* add changeset
* included in docstring
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix heartbeat in the js client to be Lite compatible
* add changeset
* add changeset
* Stop assigning the EventSource instance to a variable at heartbeat
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix handling of single font name in theme
Previous check failed because `str` is an instance of Iterable so was never correctly wrapped in `[...]`. Instead, providing a single font such as "Arial" would result in a font list of "A, r, i, a, l" in the bundled CSS.
* Handle single fonts.Font instance correctly
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
* 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>
* 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>