# This file is used to embed components in gradio.app/docs import gradio as gr with gr.Blocks() as Textbox_demo: gr.Textbox() with gr.Blocks() as Number_demo: gr.Number() with gr.Blocks() as Slider_demo: gr.Slider() with gr.Blocks() as Checkbox_demo: gr.Checkbox() with gr.Blocks() as CheckboxGroup_demo: gr.CheckboxGroup(choices=["First Choice", "Second Choice", "Third Choice"]) with gr.Blocks() as Radio_demo: gr.Radio(choices=["First Choice", "Second Choice", "Third Choice"]) with gr.Blocks() as Dropdown_demo: gr.Dropdown(choices=["First Choice", "Second Choice", "Third Choice"]) with gr.Blocks() as Image_demo: gr.Image() with gr.Blocks() as Video_demo: gr.Video() with gr.Blocks() as Audio_demo: gr.Audio() with gr.Blocks() as File_demo: gr.File() with gr.Blocks() as Dataframe_demo: gr.Dataframe(interactive=True) with gr.Blocks() as Timeseries_demo: gr.Timeseries() with gr.Blocks() as Variable_demo: gr.Variable() with gr.Blocks() as Button_demo: gr.Button() with gr.Blocks() as ColorPicker_demo: gr.ColorPicker() with gr.Blocks() as Label_demo: gr.Label(value={"First Label": 0.7, "Second Label": 0.2, "Third Label": 0.1}) with gr.Blocks() as HighlightedText_demo: gr.HighlightedText(value=[("Text","Label 1"),("to be","Label 2"),("highlighted","Label 3")]) with gr.Blocks() as JSON_demo: gr.JSON(value={"Key 1": "Value 1", "Key 2": {"Key 3": "Value 2", "Key 4": "Value 3"}, "Key 5": ["Item 1", "Item 2", "Item 3"]}) with gr.Blocks() as HTML_demo: gr.HTML(value="
Gradio Docs Readers: