Spaces:
No application file
No application file
Update app.py
Browse files
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 |
-
|
| 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 |
|