* 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>
* Clarify the streaming response documentation
You cannot simply yield one new token at a time, you have to yield the new full response.
* Clarify streaming chatbot instructions
* Clarify streaming chatbots