Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,14 @@ with gr.Blocks(
|
|
36 |
|
37 |
with gr.Column(scale=4, elem_id='col'):
|
38 |
chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
|
39 |
-
|
40 |
-
message = gr.Textbox(label="Message")
|
41 |
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
clear = gr.ClearButton([message, chatbot], scale=1)
|
45 |
|
|
|
36 |
|
37 |
with gr.Column(scale=4, elem_id='col'):
|
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")
|
46 |
+
submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
47 |
|
48 |
clear = gr.ClearButton([message, chatbot], scale=1)
|
49 |
|