New to Gradio? Start here: Getting Started

See the Release History

{#if on_main}

To install Gradio from main, run the following command:

pip install {wheel}

*Note: Setting share=True in launch() will not work.

{/if}

Themes

Description

Customize the look of your app by writing your own custom theme

{#each objs as obj}

{obj.name}

{#if obj.override_signature}
{obj.override_signature}
{:else}
{obj.parent}.{obj.name}({#each obj.parameters as param}{#if !("kwargs" in param) && !("default" in param) && param.name != "self"}{param.name}, {/if}{/each}ยทยทยท)
{/if} {#if mode === "components"}
{#key obj.name} {/key}
{/if} {#if obj.description}

Description

{@html obj.description}

{/if} {#if mode === "components"}

As input: {@html obj.tags.preprocessing}

As output: {@html obj.tags.postprocessing}

{#if obj.tags.examples_format}

Format expected for examples: {@html obj.tags.examples_format}

{/if} {#if obj.tags.events && obj.tags.events.length > 0}

Supported events: {@html obj.tags.events}

{/if} {/if} {#if obj.example}

Example Usage

{@html obj.highlighted_example}
{/if} {#if (obj.parameters.length > 0 && obj.parameters[0].name != "self") || obj.parameters.length > 1}

Initialization

{#each obj.parameters as param} {#if param["name"] != "self"} {/if} {/each}
Parameter Description
{param["name"]}

{param["annotation"]}

{#if "default" in param}

default: {param["default"]}

{:else if !("kwargs" in param)}

required

{/if}

{@html param["doc"] || ""}

{/if} {#if mode === "components" && obj.string_shortcuts} {#each obj.string_shortcuts as shortcut} {/each}
Class Interface String Shortcut Initialization

gradio.{shortcut[0]}

"{shortcut[1]}"

{shortcut[2]}
{/if} {#if obj.fns && obj.fns.length > 0}

Methods

Methods

{#each obj.fns as fn} {/each}
{/if} {#if obj.guides && obj.guides.length > 0}

Guides

{#each obj.guides as guide, i}

{guide.pretty_name}

{/each}
{/if} {#if obj.demos}

Demos

{#each obj.demos as demo, i} {/each}
{#each obj.demos as demo, i}
{/each}
{/if}
{/each}