mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 17:50:22 +01:00
Improve the chat experience
This commit is contained in:
parent
a0b1b1beb2
commit
4058b33fc9
@ -197,7 +197,10 @@ elif args.chat:
|
|||||||
btn2 = gr.Button("Clear history")
|
btn2 = gr.Button("Clear history")
|
||||||
|
|
||||||
btn.click(chatbot, [textbox, temp_slider, length_slider, preset_menu, model_menu, name1, name2, context], display1, show_progress=True)
|
btn.click(chatbot, [textbox, temp_slider, length_slider, preset_menu, model_menu, name1, name2, context], display1, show_progress=True)
|
||||||
|
textbox.submit(chatbot, [textbox, temp_slider, length_slider, preset_menu, model_menu, name1, name2, context], display1, show_progress=True)
|
||||||
btn2.click(clear)
|
btn2.click(clear)
|
||||||
|
btn.click(lambda x: "", textbox, textbox, show_progress=False)
|
||||||
|
btn2.click(lambda x: "", display1, display1)
|
||||||
else:
|
else:
|
||||||
with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}") as interface:
|
with gr.Blocks(css=".my-4 {margin-top: 0} .py-6 {padding-top: 2.5rem}") as interface:
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
|
Loading…
Reference in New Issue
Block a user