Update app.py
Browse files
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=
|
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])
|