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