Gradio logo

New to Gradio? Start here: Getting Started

See the Release History

Interpretation

gradio.Interpretation(component, ยทยทยท)

Description

Used to create an interpretation widget for a component.

Behavior

As input: this component does *not* accept input.

As output: expects a dict with keys "original" and "interpretation".

Initialization

Parameter Description
component

Component

required

Which component to show in the interpretation widget.

visible

bool

default: True

Whether or not the interpretation is visible.

elem_id

str | None

default: None

An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.

elem_classes

list[str] | str | None

default: None

An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.

Shortcuts

Class Interface String Shortcut Initialization

gradio.Interpretation

"interpretation"

Uses default values