Arcader7171 commited on
Commit
021291c
·
1 Parent(s): ecc9862

Debug app.py

Browse files

changed gr.Button.click to btn.click
changed button = gr.Button to btn = gr.Button

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ def sentences():
6
 
7
  with gr.Blocks() as pos:
8
  txt = gr.Textbox(value="", label="Textbox"),
9
- button = gr.Button(value="Free Inspirational Quotes"),
10
- gr.Button.click(sentences, outputs=[txt]),
11
 
12
 
13
  pos.launch()
 
6
 
7
  with gr.Blocks() as pos:
8
  txt = gr.Textbox(value="", label="Textbox"),
9
+ btn = gr.Button(value="Free Inspirational Quotes"),
10
+ btn.click(sentences, outputs=[txt]),
11
 
12
 
13
  pos.launch()