Spaces:
Sleeping
Sleeping
import gradio as gr | |
with gr.Blocks() as demo: | |
d = gr.Dropdown(["Choice 1", "Choice 2", "Other"]) | |
t = gr.Textbox(visible=False) | |
d.change(lambda x: gr.Dropdown.update(visible=x=="Other"), d, t) | |
demo.launch() |