Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,13 +37,12 @@ def predict(msg, history=[]):
|
|
37 |
|
38 |
|
39 |
with gr.Blocks() as demo:
|
40 |
-
chatbot = gr.Chatbot()
|
41 |
state = gr.State([])
|
42 |
-
|
43 |
-
|
44 |
txt = gr.Textbox(label='输入框', placeholder='输入内容...')
|
45 |
bu = gr.Button(value='发送')
|
46 |
-
with gr.
|
47 |
answer_text = gr.Textbox(label='回复')
|
48 |
|
49 |
bu.click(predict, [txt, state], [chatbot, state, answer_text])
|
|
|
37 |
|
38 |
|
39 |
with gr.Blocks() as demo:
|
|
|
40 |
state = gr.State([])
|
41 |
+
with gr.Row():
|
42 |
+
chatbot = gr.Chatbot()
|
43 |
txt = gr.Textbox(label='输入框', placeholder='输入内容...')
|
44 |
bu = gr.Button(value='发送')
|
45 |
+
with gr.Row():
|
46 |
answer_text = gr.Textbox(label='回复')
|
47 |
|
48 |
bu.click(predict, [txt, state], [chatbot, state, answer_text])
|