The Label component displays classification results with confidence scores.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gradio-app/gradio/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Constructor
Default value:
- Dict of
{label: confidence}pairs - Single string/number label
- Function that returns label data
Number of top classes to display
Label displayed above component
Background color as CSS color name or hex code
Whether to show the top class as heading
Events
- change - Triggered when value changes
- select - Triggered when label is selected