souljoy commited on
Commit
7398b02
1 Parent(s): b640f24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- with gr.Column():
44
  txt = gr.Textbox(label='输入框', placeholder='输入内容...')
45
  bu = gr.Button(value='发送')
46
- with gr.Column():
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])