mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-02-02 23:23:11 +01:00
Submit with enter instead of shift+enter in chat mode
This commit is contained in:
parent
22845ba445
commit
059d47edb5
@ -430,7 +430,7 @@ if args.chat or args.cai_chat:
|
|||||||
display1 = gr.HTML(value=generate_chat_html([], "", "", character))
|
display1 = gr.HTML(value=generate_chat_html([], "", "", character))
|
||||||
else:
|
else:
|
||||||
display1 = gr.Chatbot()
|
display1 = gr.Chatbot()
|
||||||
textbox = gr.Textbox(lines=2, label='Input')
|
textbox = gr.Textbox(label='Input')
|
||||||
btn = gr.Button("Generate")
|
btn = gr.Button("Generate")
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
stop = gr.Button("Stop")
|
stop = gr.Button("Stop")
|
||||||
|
Loading…
Reference in New Issue
Block a user