hysts HF Staff commited on
Commit
913bdb6
·
1 Parent(s): 57cbddc
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,6 +6,6 @@ with gr.Blocks() as demo:
6
  text = gr.Text()
7
  out = gr.Text()
8
  btn = gr.Button()
9
- text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
10
  btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
11
  demo.queue().launch()
 
6
  text = gr.Text()
7
  out = gr.Text()
8
  btn = gr.Button()
9
+ gr.Examples(examples=['aaa', 'bbb'], inputs=text)
10
  btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
11
  demo.queue().launch()