1. Building Demos
  2. 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.

Initialization

Parameters
🔗
interface_list: list[Blocks]

A list of Interfaces (or Blocks) to be rendered in the tabs.

🔗
tab_names: list[str] | None
default = None

A list of tab names. If None, the tab names will be "Tab 1", "Tab 2", etc.

🔗
title: str | None
default = None

The tab title to display when this demo is opened in a browser window.

🔗
analytics_enabled: bool | None
default = None

Whether to allow basic telemetry. If None, will use GRADIO_ANALYTICS_ENABLED environment variable or default to True.

Demos