- New to Gradio? Start here: Getting Started +
-
-- See the Release History -
--
{obj.override_signature}
+ {obj.parent}.{obj.name}({#each obj.parameters as param}{#if !("kwargs" in param) && !("default" in param) && param.name != "self"}{param.name}, {/if}{/each}···)
-
- Behavior
-
-
- - As input: - {@html obj.preprocessing} -
-- As output: - {@html obj.postprocessing} -
- {#if obj.examples_format} -- Format expected for examples: - {@html obj.examples_format}} -
- {/if} - {#if obj.events && obj.events.length > 0} -- Supported events: - {@html obj.events} -
- {/if} -
- Initialization
-
-
- Parameter | -Description | -
---|---|
-
- {param["name"]}
-
- - {param["annotation"]} - - {#if "default" in param} -- default: {param["default"]} - - {:else if !("kwargs" in param)} -- required - - {/if} - |
-
- {param["doc"] || ""} - |
-
- Shortcuts
+
+
+ Description
-
-
-
- Class
- Interface String Shortcut
- Initialization
-
-
-
- {#each obj.string_shortcuts as shortcut}
-
-
-
- gradio.{shortcut[0]}
-
-
-
- "{shortcut[1]}"
-
-
- {shortcut[2]}
-
-
- {/each}
-
-
+ {@html obj.description}
- {/if}
- {#if obj.demos}
-
-
-
- Demos
+ {#if mode === "components"}
+
+
+ Behavior
+
+
+
+ As input:
+ {@html obj.preprocessing}
+
+
+ As output:
+ {@html obj.postprocessing}
+
+ {#if obj.examples_format}
+
+ Format expected for examples:
+ {@html obj.examples_format}}
+
+ {/if}
+ {#if obj.events && obj.events.length > 0}
+
+ Supported events:
+ {@html obj.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
+
+
+
+
+
+ Parameter
+ Description
+
+
+
+ {#each obj.parameters as param}
+ {#if param["name"] != "self"}
+
+
+
+ {param["name"]}
+
+
+ {param["annotation"]}
+
+ {#if "default" in param}
+
+ default: {param["default"]}
+
+ {:else if !("kwargs" in param)}
+
+ required
+
+ {/if}
+
+
+ {param["doc"] || ""}
+
+
+ {/if}
+ {/each}
+
+
+
+ {/if}
+
+ {#if mode === "components" && obj.string_shortcuts}
+
+ {/if}
+
+ {#if obj.demos}
+
-
- {/if}
+ {/if}
- {#if obj.fns && obj.fns.length > 0}
-
- {/if}
-
- {#if obj.guides && obj.guides.length > 0}
-
-
-
-
+
+
+ {#if obj.prev_obj}
+
+
+ ←
+ {obj.prev_obj.replace("-", " ")}
+
+
+ {:else}
+
+ {/if}
+ {#if obj.next_obj}
+
+
+ {obj.next_obj.replace("-", " ")}
+ →
+
+
+ {:else}
+
+ {/if}
+
-
- {#if obj.prev_obj}
+
diff --git a/js/_website/src/routes/docs/block-layouts/+page.svelte b/js/_website/src/routes/docs/block-layouts/+page.svelte
index 295c22d81d..74a9db58ab 100644
--- a/js/_website/src/routes/docs/block-layouts/+page.svelte
+++ b/js/_website/src/routes/docs/block-layouts/+page.svelte
@@ -62,421 +62,434 @@
-
+
+
-
-
-
- New to Gradio? Start here: Getting Started
+
+
-
-
- See the Release History
-
-
+ New to Gradio? Start here: Getting Started
+
+
+ See the Release History
+
+
-
+
-
-
-
+
+
-
+
- {#each objs as obj}
-
-
-
- {#if obj.override_signature}
-
- {obj.override_signature}
+ {#each objs as obj}
+
+
- {: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}
- {#if mode === "components"}
-
- {/if}
+ {#if mode === "components"}
+
+ {/if}
-
- Description
-
-
- {@html obj.description}
+ Description
+
+
+ {@html obj.description}
- {#if mode === "components"}
-
- As input:
- {@html obj.preprocessing}
-
-
- As output:
- {@html obj.postprocessing}
-
- {#if obj.examples_format}
+ {#if mode === "components"}
- Format expected for examples:
- {@html obj.examples_format}}
+ As input:
+ {@html obj.preprocessing}
- {/if}
- {#if obj.events && obj.events.length > 0}
-
- Supported events:
- {@html obj.events}
+
+ As output:
+ {@html obj.postprocessing}
+ {#if obj.examples_format}
+
+ Format expected for examples:
+ {@html obj.examples_format}}
+
+ {/if}
+ {#if obj.events && obj.events.length > 0}
+
+ Supported events:
+ {@html obj.events}
+
+ {/if}
{/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
-
-
-
-
-
- Parameter
- Description
-
-
-
- {#each obj.parameters as param}
- {#if param["name"] != "self"}
-
-
-
- {param["name"]}
-
-
- {param["annotation"]}
-
- {#if "default" in param}
-
- default: {param["default"]}
-
- {:else if !("kwargs" in param)}
-
- required
-
- {/if}
-
-
- {param["doc"] || ""}
-
-
- {/if}
- {/each}
-
-
- {/if}
-
- {#if mode === "components" && obj.string_shortcuts}
-
-
-
- Class
- Interface String Shortcut
- Initialization
-
-
-
- {#each obj.string_shortcuts as shortcut}
-
-
-
- gradio.{shortcut[0]}
-
-
-
- "{shortcut[1]}"
-
-
- {shortcut[2]}
-
-
- {/each}
-
-
- {/if}
-
- {#if obj.fns && obj.fns.length > 0}
- Methods
-
- {#each obj.fns as fn}
-
- {/each}
-
-
- {/if}
-
- {#if obj.guides && obj.guides.length > 0}
-
-
- Guides
+ Example Usage
-
-
- {#each obj.guides as guide, i}
-
-
-
- {guide.pretty_name}
-
-
-
- {/each}
+
+ {@html obj.highlighted_example}
-
- {/if}
+ {/if}
- {#if obj.demos}
-
-
- 0 && obj.parameters[0].name != "self") || obj.parameters.length > 1}
+
+ Initialization
+
- ✨ {obj.name} Examples
+
+
+
+
+ Parameter
+ Description
+
+
+
+ {#each obj.parameters as param}
+ {#if param["name"] != "self"}
+
+
+
+ {param["name"]}
+
+
+ {param["annotation"]}
+
+ {#if "default" in param}
+
+ default: {param["default"]}
+
+ {:else if !("kwargs" in param)}
+
+ required
+
+ {/if}
+
+
+ {param["doc"] || ""}
+
+
+ {/if}
+ {/each}
+
+
+ {/if}
+
+ {#if mode === "components" && obj.string_shortcuts}
+
+
+
+ Class
+ Interface String Shortcut
+ Initialization
+
+
+
+ {#each obj.string_shortcuts as shortcut}
+
+
+
+ gradio.{shortcut[0]}
+
+
+
+ "{shortcut[1]}"
+
+
+ {shortcut[2]}
+
+
+ {/each}
+
+
+ {/if}
+
+ {#if obj.fns && obj.fns.length > 0}
+ 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}
+
-
- {/if}
-
- {/each}
-
-
+
+
-
-
diff --git a/js/_website/src/routes/docs/combining-interfaces/+page.svelte b/js/_website/src/routes/docs/combining-interfaces/+page.svelte
index 5affb87b8f..8ba60e2b38 100644
--- a/js/_website/src/routes/docs/combining-interfaces/+page.svelte
+++ b/js/_website/src/routes/docs/combining-interfaces/+page.svelte
@@ -27,7 +27,7 @@
const anchor = document.getElementById(anchorId);
window.scrollTo({
top: anchor?.offsetTop,
- behavior: "smooth"
+ behavior: "smooth",
});
}
@@ -61,425 +61,434 @@
-
+
+
-
-
-
- New to Gradio? Start here: Getting Started
+
+
-
-
- See the Release History
-
-
+ New to Gradio? Start here: Getting Started
+
+
+ See the Release History
+
+
-
-
-
-
-
-
-
- Combining Interfaces
-
-
+
- {#each objs as obj}
-
+
+
+
- {#if obj.override_signature}
-
- {obj.override_signature}
+ {#each objs as obj}
+
+
- {: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}
- {#if mode === "components"}
-
- {/if}
+ {#if mode === "components"}
+
+ {/if}
-
- Description
-
-
- {@html obj.description}
+ Description
+
+
+ {@html obj.description}
- {#if mode === "components"}
-
- As input:
- {@html obj.preprocessing}
-
-
- As output:
- {@html obj.postprocessing}
-
- {#if obj.examples_format}
+ {#if mode === "components"}
- Format expected for examples:
- {@html obj.examples_format}}
+ As input:
+ {@html obj.preprocessing}
- {/if}
- {#if obj.events && obj.events.length > 0}
-
- Supported events:
- {@html obj.events}
+
+ As output:
+ {@html obj.postprocessing}
+ {#if obj.examples_format}
+
+ Format expected for examples:
+ {@html obj.examples_format}}
+
+ {/if}
+ {#if obj.events && obj.events.length > 0}
+
+ Supported events:
+ {@html obj.events}
+
+ {/if}
{/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
-
-
-
-
-
- Parameter
- Description
-
-
-
- {#each obj.parameters as param}
- {#if param["name"] != "self"}
-
-
-
- {param["name"]}
-
-
- {param["annotation"]}
-
- {#if "default" in param}
-
- default: {param["default"]}
-
- {:else if !("kwargs" in param)}
-
- required
-
- {/if}
-
-
- {param["doc"] || ""}
-
-
- {/if}
- {/each}
-
-
- {/if}
-
- {#if mode === "components" && obj.string_shortcuts}
-
-
-
- Class
- Interface String Shortcut
- Initialization
-
-
-
- {#each obj.string_shortcuts as shortcut}
-
-
-
- gradio.{shortcut[0]}
-
-
-
- "{shortcut[1]}"
-
-
- {shortcut[2]}
-
-
- {/each}
-
-
- {/if}
-
- {#if obj.fns && obj.fns.length > 0}
- 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}
-
+ {#if obj.example}
- Demos
+ Example Usage
-
-
-
+ {@html obj.highlighted_example}
+
+ {/if}
+
+ {#if (obj.parameters.length > 0 && obj.parameters[0].name != "self") || obj.parameters.length > 1}
+
+ Initialization
+
+
+
+
+
+ Parameter
+ Description
+
+
+
+ {#each obj.parameters as param}
+ {#if param["name"] != "self"}
+
+
+
+ {param["name"]}
+
+
+ {param["annotation"]}
+
+ {#if "default" in param}
+
+ default: {param["default"]}
+
+ {:else if !("kwargs" in param)}
+
+ required
+
+ {/if}
+
+
+ {param["doc"] || ""}
+
+
+ {/if}
+ {/each}
+
+
+ {/if}
+
+ {#if mode === "components" && obj.string_shortcuts}
+
+
+
+ Class
+ Interface String Shortcut
+ Initialization
+
+
+
+ {#each obj.string_shortcuts as shortcut}
+
+
+
+ gradio.{shortcut[0]}
+
+
+
+ "{shortcut[1]}"
+
+
+ {shortcut[2]}
+
+
+ {/each}
+
+
+ {/if}
+
+ {#if obj.fns && obj.fns.length > 0}
+ Methods
+
+ {#each obj.fns as fn}
+
+ {/each}
+
+
+ {/if}
+
+ {#if obj.guides && obj.guides.length > 0}
+
+ Guides
+
+
+
+
-
- {/if}
-
- {/each}
-
-
-
+
-
diff --git a/js/_website/src/routes/docs/components/+page.svelte b/js/_website/src/routes/docs/components/+page.svelte
index 39eb143a9e..5ff5d774b8 100644
--- a/js/_website/src/routes/docs/components/+page.svelte
+++ b/js/_website/src/routes/docs/components/+page.svelte
@@ -32,7 +32,7 @@
New to Gradio? Start here: Getting Started
-
+
-
+
+
-
-
-
- New to Gradio? Start here: Getting Started
+
+
-
-
- See the Release History
-
-
-
-
-
-
-
-
+
+
+ See the Release History
+
+
- {#each objs as obj}
-
+
+
+
+
+
- {#if obj.override_signature}
-
+
+ {#each objs as obj}
+
+
- {: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}
- {#if mode === "components"}
-
- {/if}
+ {#if mode === "components"}
+
+ {/if}
-
- Description
-
-
- {@html obj.description}
+ Description
+
+
+ {@html obj.description}
- {#if mode === "components"}
-
- As input:
- {@html obj.preprocessing}
-
-
- As output:
- {@html obj.postprocessing}
-
- {#if obj.examples_format}
+ {#if mode === "components"}
- Format expected for examples:
- {@html obj.examples_format}}
+ As input:
+ {@html obj.preprocessing}
- {/if}
- {#if obj.events && obj.events.length > 0}
-
- Supported events:
- {@html obj.events}
+
+ As output:
+ {@html obj.postprocessing}
+ {#if obj.examples_format}
+
+ Format expected for examples:
+ {@html obj.examples_format}}
+
+ {/if}
+ {#if obj.events && obj.events.length > 0}
+
+ Supported events:
+ {@html obj.events}
+
+ {/if}
{/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
-
-
-
-
-
-
- Parameter
- Description
-
-
-
- {#each obj.parameters as param}
- {#if param["name"] != "self"}
-
-
-
- {param["name"]}
-
-
- {param["annotation"]}
-
- {#if "default" in param}
-
- default: {param["default"]}
-
- {:else if !("kwargs" in param)}
-
- required
-
- {/if}
-
-
- {param["doc"] || ""}
-
-
- {/if}
- {/each}
-
-
- {/if}
-
- {#if mode === "components" && obj.string_shortcuts}
-
-
-
- Class
- Interface String Shortcut
- Initialization
-
-
-
- {#each obj.string_shortcuts as shortcut}
-
-
-
- gradio.{shortcut[0]}
-
-
-
- "{shortcut[1]}"
-
-
- {shortcut[2]}
-
-
- {/each}
-
-
- {/if}
-
- {#if obj.fns && obj.fns.length > 0}
- 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}
-
+ {#if obj.example}
- Demos
+ Example Usage
-
-
-
+ {@html obj.highlighted_example}
+
+ {/if}
+
+ {#if (obj.parameters.length > 0 && obj.parameters[0].name != "self") || obj.parameters.length > 1}
+
+ Initialization
+
+
+
+
+
+
+ Parameter
+ Description
+
+
+
+ {#each obj.parameters as param}
+ {#if param["name"] != "self"}
+
+
+
+ {param["name"]}
+
+
+ {param["annotation"]}
+
+ {#if "default" in param}
+
+ default: {param["default"]}
+
+ {:else if !("kwargs" in param)}
+
+ required
+
+ {/if}
+
+
+ {param["doc"] || ""}
+
+
+ {/if}
+ {/each}
+
+
+ {/if}
+
+ {#if mode === "components" && obj.string_shortcuts}
+
+
+
+ Class
+ Interface String Shortcut
+ Initialization
+
+
+
+ {#each obj.string_shortcuts as shortcut}
+
+
+
+ gradio.{shortcut[0]}
+
+
+
+ "{shortcut[1]}"
+
+
+ {shortcut[2]}
+
+
+ {/each}
+
+
+ {/if}
+
+ {#if obj.fns && obj.fns.length > 0}
+ Methods
+
+ {#each obj.fns as fn}
+
+ {/each}
+
+
+ {/if}
+
+ {#if obj.guides && obj.guides.length > 0}
+
+ Guides
+
+
+
+
-
- {/if}
-
- {/each}
+ {/if}
+
+ {/each}
+
-
+ Description
- Class | -Interface String Shortcut | -Initialization | -
---|---|---|
-
- |
-
- "{shortcut[1]}" - |
- - {shortcut[2]} - | -
{@html obj.description}
- Demos
+ {#if mode === "components"}
+
+
+ Behavior
+
+
+
+ As input:
+ {@html obj.preprocessing}
+
+
+ As output:
+ {@html obj.postprocessing}
+
+ {#if obj.examples_format}
+
+ Format expected for examples:
+ {@html obj.examples_format}}
+
+ {/if}
+ {#if obj.events && obj.events.length > 0}
+
+ Supported events:
+ {@html obj.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
+
+
+
+
+
+ Parameter
+ Description
+
+
+
+ {#each obj.parameters as param}
+ {#if param["name"] != "self"}
+
+
+
+ {param["name"]}
+
+
+ {param["annotation"]}
+
+ {#if "default" in param}
+
+ default: {param["default"]}
+
+ {:else if !("kwargs" in param)}
+
+ required
+
+ {/if}
+
+
+ {param["doc"] || ""}
+
+
+ {/if}
+ {/each}
+
+
+
+ {/if}
+
+ {#if mode === "components" && obj.string_shortcuts}
+
+ {/if}
+
+ {#if obj.demos}
+
-
- {/if}
+ {/if}
- {#if obj.fns && obj.fns.length > 0}
-
- {/if}
-
- {#if obj.guides && obj.guides.length > 0}
-
-
-
-
+ Behavior
+
+
+ + As input: + {@html obj.preprocessing} +
++ As output: + {@html obj.postprocessing} +
+ {#if obj.examples_format} ++ Format expected for examples: + {@html obj.examples_format}} +
+ {/if} + {#if obj.events && obj.events.length > 0} ++ Supported events: + {@html obj.events} +
+ {/if} +
+ Example Usage
- {@html obj.highlighted_example}
+
+ Initialization
+
+
+ Parameter | +Description | +
---|---|
+
+ {param["name"]}
+
+ + {param["annotation"]} + + {#if "default" in param} ++ default: {param["default"]} + + {:else if !("kwargs" in param)} ++ required + + {/if} + |
+
+ {param["doc"] || ""} + |
+
- New to Gradio? Start here: Getting Started +
-
-- See the Release History -
-+ See the Release History +
+{obj.override_signature}
+ {#each objs as obj}
+ {obj.parent}.{obj.name}({#each obj.parameters as param}{#if !("kwargs" in param) && !("default" in param) && param.name != "self"}{param.name}, {/if}{/each}···)
-
- Description
-
-
- {@html obj.description}
+ Description +{@html obj.description}
- {#if mode === "components"} -- As input: - {@html obj.preprocessing} -
-- As output: - {@html obj.postprocessing} -
- {#if obj.examples_format} + {#if mode === "components"}- Format expected for examples: - {@html obj.examples_format}} + As input: + {@html obj.preprocessing}
- {/if} - {#if obj.events && obj.events.length > 0} -- Supported events: - {@html obj.events} +
+ As output: + {@html obj.postprocessing}
+ {#if obj.examples_format} ++ Format expected for examples: + {@html obj.examples_format}} +
+ {/if} + {#if obj.events && obj.events.length > 0} ++ Supported events: + {@html obj.events} +
+ {/if} {/if} - {/if} - {#if obj.example} -
- Example Usage
-
-
- {@html obj.highlighted_example}
-
- Initialization
-
-
- Parameter | -Description | -
---|---|
-
- {param["name"]}
-
- - {param["annotation"]} - - {#if "default" in param} -- default: {param["default"]} - - {:else if !("kwargs" in param)} -- required - - {/if} - |
-
- {param["doc"] || ""} - |
-
Class | -Interface String Shortcut | -Initialization | -
---|---|---|
-
- |
-
- "{shortcut[1]}" - |
- - {shortcut[2]} - | -
Methods
-
- Guides
+ Example Usage
-
- - {guide.pretty_name} -
-{@html obj.highlighted_example}
0 && obj.parameters[0].name != "self") || obj.parameters.length > 1}
+
+ Initialization
+
- ✨ {obj.name} Examples
+
+
Parameter | +Description | +
---|---|
+
+ {param["name"]}
+
+ + {param["annotation"]} + + {#if "default" in param} ++ default: {param["default"]} + + {:else if !("kwargs" in param)} ++ required + + {/if} + |
+
+ {param["doc"] || ""} + |
+
Class | +Interface String Shortcut | +Initialization | +
---|---|---|
+
+ |
+
+ "{shortcut[1]}" + |
+ + {shortcut[2]} + | +
Methods
+
+ Guides

-
-
-
-
+
+
+ {#each obj.guides as guide, i}
+
-
+
+
+ {guide.pretty_name}
+
+
+
+ {/each}
+
+
+ {/if}
+
+ {#if obj.demos}
+
-
- {/if}
-
- {/each}
-
+ {guide.pretty_name} +
+- New to Gradio? Start here: Getting Started +
-
-- See the Release History -
-+ See the Release History +
+
- Combining Interfaces
-
-
+
- {#each objs as obj}
- {obj.override_signature}
+ {#each objs as obj}
+ {obj.parent}.{obj.name}({#each obj.parameters as param}{#if !("kwargs" in param) && !("default" in param) && param.name != "self"}{param.name}, {/if}{/each}···)
-
- Description
-
-
- {@html obj.description}
+ Description +{@html obj.description}
- {#if mode === "components"} -- As input: - {@html obj.preprocessing} -
-- As output: - {@html obj.postprocessing} -
- {#if obj.examples_format} + {#if mode === "components"}- Format expected for examples: - {@html obj.examples_format}} + As input: + {@html obj.preprocessing}
- {/if} - {#if obj.events && obj.events.length > 0} -- Supported events: - {@html obj.events} +
+ As output: + {@html obj.postprocessing}
+ {#if obj.examples_format} ++ Format expected for examples: + {@html obj.examples_format}} +
+ {/if} + {#if obj.events && obj.events.length > 0} ++ Supported events: + {@html obj.events} +
+ {/if} {/if} - {/if} - {#if obj.example} -
- Example Usage
-
-
- {@html obj.highlighted_example}
-
- Initialization
-
-
- Parameter | -Description | -
---|---|
-
- {param["name"]}
-
- - {param["annotation"]} - - {#if "default" in param} -- default: {param["default"]} - - {:else if !("kwargs" in param)} -- required - - {/if} - |
-
- {param["doc"] || ""} - |
-
Class | -Interface String Shortcut | -Initialization | -
---|---|---|
-
- |
-
- "{shortcut[1]}" - |
- - {shortcut[2]} - | -
Methods
-
- Guides
-
-
-
- - {guide.pretty_name} -
-
- Demos
+ Example Usage
- {@html obj.highlighted_example}
+
+ Initialization
+
+
+ Parameter | +Description | +
---|---|
+
+ {param["name"]}
+
+ + {param["annotation"]} + + {#if "default" in param} ++ default: {param["default"]} + + {:else if !("kwargs" in param)} ++ required + + {/if} + |
+
+ {param["doc"] || ""} + |
+
Class | +Interface String Shortcut | +Initialization | +
---|---|---|
+
+ |
+
+ "{shortcut[1]}" + |
+ + {shortcut[2]} + | +
Methods
+
+ Guides
+
+
+
+
- New to Gradio? Start here: Getting Started
- New to Gradio? Start here: Getting Started +
-
-- See the Release History -
-+ See the Release History +
+{obj.parent}.{obj.name}({#each obj.parameters as param}{#if !("kwargs" in param) && !("default" in param) && param.name != "self"}{param.name}, {/if}{/each}···)
-
- Description
-
-
- {@html obj.description}
+ Description +{@html obj.description}
- {#if mode === "components"} -- As input: - {@html obj.preprocessing} -
-- As output: - {@html obj.postprocessing} -
- {#if obj.examples_format} + {#if mode === "components"}- Format expected for examples: - {@html obj.examples_format}} + As input: + {@html obj.preprocessing}
- {/if} - {#if obj.events && obj.events.length > 0} -- Supported events: - {@html obj.events} +
+ As output: + {@html obj.postprocessing}
+ {#if obj.examples_format} ++ Format expected for examples: + {@html obj.examples_format}} +
+ {/if} + {#if obj.events && obj.events.length > 0} ++ Supported events: + {@html obj.events} +
+ {/if} {/if} - {/if} - {#if obj.example} -
- Example Usage
-
-
- {@html obj.highlighted_example}
-
- Initialization
-
-
-
- Parameter | -Description | -
---|---|
-
- {param["name"]}
-
- - {param["annotation"]} - - {#if "default" in param} -- default: {param["default"]} - - {:else if !("kwargs" in param)} -- required - - {/if} - |
-
- {param["doc"] || ""} - |
-
Class | -Interface String Shortcut | -Initialization | -
---|---|---|
-
- |
-
- "{shortcut[1]}" - |
- - {shortcut[2]} - | -
Methods
-
- Guides
-
-
-
- - {guide.pretty_name} -
-
- Demos
+ Example Usage
- {@html obj.highlighted_example}
+
+ Initialization
+
+
+
+ Parameter | +Description | +
---|---|
+
+ {param["name"]}
+
+ + {param["annotation"]} + + {#if "default" in param} ++ default: {param["default"]} + + {:else if !("kwargs" in param)} ++ required + + {/if} + |
+
+ {param["doc"] || ""} + |
+
Class | +Interface String Shortcut | +Initialization | +
---|---|---|
+
+ |
+
+ "{shortcut[1]}" + |
+ + {shortcut[2]} + | +