- Building Demos
- TabbedInterface
New to Gradio? Start here: Getting Started
See the Release History
TabbedInterface
gradio.TabbedInterface(interface_list, ···)Description
A TabbedInterface is created by providing a list of Interfaces or Blocks, each of which gets rendered in a separate tab. Only the components from the Interface/Blocks will be rendered in the tab. Certain high-level attributes of the Blocks (e.g. custom css, js, and head attributes) will not be loaded.
Initialization
Parameters
tab_names: list[str] | None
tab_names: list[str] | Nonedefault
= NoneA list of tab names. If None, the tab names will be "Tab 1", "Tab 2", etc.
title: str | None
title: str | Nonedefault
= NoneThe tab title to display when this demo is opened in a browser window.
theme: Theme | str | None
theme: Theme | str | Nonedefault
= NoneA Theme object or a string representing a theme. If a string, will look for a built-in theme with that name (e.g. "soft" or "default"), or will attempt to load a theme from the Hugging Face Hub (e.g. "gradio/monochrome"). If None, will use the Default theme.
analytics_enabled: bool | None
analytics_enabled: bool | Nonedefault
= NoneWhether to allow basic telemetry. If None, will use GRADIO_ANALYTICS_ENABLED environment variable or default to True.
css: str | None
css: str | Nonedefault
= NoneCustom css as a string or path to a css file. This css will be included in the demo webpage.