mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-23 21:18:00 +01:00
Submit with Shift+Enter
This commit is contained in:
parent
e2a917b3bf
commit
6cbfe19c23
@ -166,6 +166,7 @@ if args.notebook:
|
||||
model_menu = gr.Dropdown(choices=available_models, value=model_name, label='Model')
|
||||
|
||||
btn.click(generate_reply, [textbox, temp_slider, length_slider, preset_menu, model_menu], [textbox, markdown, html], show_progress=True)
|
||||
textbox.submit(generate_reply, [textbox, temp_slider, length_slider, preset_menu, model_menu], [textbox, markdown, html], show_progress=True)
|
||||
elif args.chat:
|
||||
history = []
|
||||
|
||||
@ -234,5 +235,6 @@ else:
|
||||
html = gr.HTML()
|
||||
|
||||
btn.click(generate_reply, [textbox, temp_slider, length_slider, preset_menu, model_menu], [output_textbox, markdown, html], show_progress=True)
|
||||
textbox.submit(generate_reply, [textbox, temp_slider, length_slider, preset_menu, model_menu], [output_textbox, markdown, html], show_progress=True)
|
||||
|
||||
interface.launch(share=False, server_name="0.0.0.0")
|
||||
|
Loading…
Reference in New Issue
Block a user