other-textbox / app.py
abidlabs's picture
abidlabs HF staff
Create app.py
205fec5
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()