Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
def change_textbox(choice):
|
3 |
if choice in {"A", "B"}:
|
4 |
return gr.update(interactive=False, value="not interactive")
|
5 |
elif choice == "C":
|
6 |
return gr.update(interactive=True)
|
7 |
-
|
8 |
with gr.Blocks() as demo:
|
9 |
radio_button = gr.Radio(["A", "B", "C"], type="value")
|
10 |
text_box = gr.Textbox()
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
def change_textbox(choice):
|
4 |
if choice in {"A", "B"}:
|
5 |
return gr.update(interactive=False, value="not interactive")
|
6 |
elif choice == "C":
|
7 |
return gr.update(interactive=True)
|
8 |
+
|
9 |
with gr.Blocks() as demo:
|
10 |
radio_button = gr.Radio(["A", "B", "C"], type="value")
|
11 |
text_box = gr.Textbox()
|