Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
•
9d6a48d
1
Parent(s):
374cee2
Update app.py
Browse files
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()
|