Update app.py
Browse files
app.py
CHANGED
@@ -43,10 +43,10 @@ with gr.Blocks(
|
|
43 |
|
44 |
|
45 |
with gr.Column(scale=4, elem_id='col'):
|
|
|
46 |
|
47 |
with gr.Row():
|
48 |
-
|
49 |
-
message = gr.Textbox(label="Message", scale=1)
|
50 |
message.submit(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
51 |
submit_button = gr.Button("Submit", scale=1, elem_id="submit")
|
52 |
submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
|
|
43 |
|
44 |
|
45 |
with gr.Column(scale=4, elem_id='col'):
|
46 |
+
chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
|
47 |
|
48 |
with gr.Row():
|
49 |
+
message = gr.Textbox(label="Message", scale=10)
|
|
|
50 |
message.submit(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
51 |
submit_button = gr.Button("Submit", scale=1, elem_id="submit")
|
52 |
submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|