Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
d = gr.Dropdown(["Choice 1", "Choice 2", "Other"])
|
5 |
+
t = gr.Textbox(visible=False)
|
6 |
+
d.change(lambda x: gr.Dropdown.update(visible=x=="Other"), d, t)
|
7 |
+
|
8 |
+
demo.launch()
|