Introducing Gradio Clients

Watch

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

Demos

import gradio as gr hello_world = gr.Interface(lambda name: "Hello " + name, "text", "text") bye_world = gr.Interface(lambda name: "Bye " + name, "text", "text") demo = gr.TabbedInterface([hello_world, bye_world], ["Hello World", "Bye World"]) if __name__ == "__main__": demo.launch()