BOBOBO-Coder commited on
Commit
9c48560
·
verified ·
1 Parent(s): 160da2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,9 +4,9 @@ with gr.Blocks() as demo:
4
  with gr.Column():
5
  gr.HTML("<h1>hello</h1>")
6
  gr.HTML("<h3>who r u?</h3>")
7
- gr.Textbox()
8
-
9
- gr.Textbox("Ending, why it disappeared?")
10
 
11
 
12
 
 
4
  with gr.Column():
5
  gr.HTML("<h1>hello</h1>")
6
  gr.HTML("<h3>who r u?</h3>")
7
+ inbox = gr.Textbox(label="输入名字")
8
+ outbox = gr.Textbox(label="输出语句")
9
+ inbox.change(lambda name: name+"太酷辣!",inbox,outbox)
10
 
11
 
12