Spaces:
Runtime error
Runtime error
File size: 348 Bytes
c512664 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
def debug_click(drop_down):
print(drop_down)
return "yes"
with gr.Blocks() as demo:
drop_down = gr.Dropdown(
choices=["first", "second"], type="index", interactive=True, multiselect=False
)
txt = gr.Textbox()
btn = gr.Button("Clear")
btn.click(debug_click, inputs=drop_down, outputs=txt)
|