Submit with enter instead of shift+enter in chat mode

This commit is contained in:
oobabooga 2023-01-23 14:04:01 -03:00
parent 22845ba445
commit 059d47edb5

View File

@ -430,7 +430,7 @@ if args.chat or args.cai_chat:
display1 = gr.HTML(value=generate_chat_html([], "", "", character))
else:
display1 = gr.Chatbot()
textbox = gr.Textbox(lines=2, label='Input')
textbox = gr.Textbox(label='Input')
btn = gr.Button("Generate")
with gr.Row():
stop = gr.Button("Stop")