Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
abidlabs
/
other-textbox
like
0
Sleeping
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
205fec5
other-textbox
/
app.py
abidlabs
HF Staff
Create app.py
205fec5
over 2 years ago
raw
Copy download link
history
blame
Safe
223 Bytes
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()