gradio/demo/clearbutton_component/run.py
Freddy Boulton 9b56057a98
Add gr.ClearButton component demo (#4819)
* add code

* Add notebook

* Fix typos

* Remove css

* Add notebook
2023-07-07 11:51:18 -04:00

10 lines
174 B
Python

import gradio as gr
with gr.Blocks() as demo:
textbox = gr.Textbox(value="This is some text")
gr.ClearButton(textbox)
if __name__ == "__main__":
demo.launch()