yxmauw commited on
Commit
ed4338a
1 Parent(s): ea8b1a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,11 +38,11 @@ with gr.Blocks(
38
  chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
39
 
40
  with gr.Row():
41
- with gr.Column(scale=10):
42
  message = gr.Textbox(label="Message")
43
  message.submit(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
44
  with gr.Column(scale=1):
45
- submit_button = gr.Button("Submit")
46
  submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
47
 
48
  clear = gr.ClearButton([message, chatbot])
 
38
  chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
39
 
40
  with gr.Row():
41
+ with gr.Column(scale=5):
42
  message = gr.Textbox(label="Message")
43
  message.submit(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
44
  with gr.Column(scale=1):
45
+ submit_button = gr.Button("Submit", size="sm")
46
  submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
47
 
48
  clear = gr.ClearButton([message, chatbot])