storresbusquets commited on
Commit
9d6a48d
1 Parent(s): 374cee2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -44,7 +44,9 @@ with gr.Blocks() as demo:
44
  text = gr.Textbox(label="Text")
45
  summary = gr.Textbox(label="Summary")
46
  greet_btn = gr.Button("Submit")
 
47
  greet_btn.click(fn=greet, inputs=text, outputs=summary, api_name="greet")
 
48
 
49
 
50
  demo.launch()
 
44
  text = gr.Textbox(label="Text")
45
  summary = gr.Textbox(label="Summary")
46
  greet_btn = gr.Button("Submit")
47
+ clear = gr.ClearnButton([text, summary])
48
  greet_btn.click(fn=greet, inputs=text, outputs=summary, api_name="greet")
49
+
50
 
51
 
52
  demo.launch()