mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Readability
This commit is contained in:
parent
b397bea387
commit
80fbc584f7
@ -957,12 +957,13 @@ if args.chat or args.cai_chat:
|
|||||||
buttons["Stop"].click(None, None, None, cancels=gen_events)
|
buttons["Stop"].click(None, None, None, cancels=gen_events)
|
||||||
buttons["Download"].click(save_history, inputs=[], outputs=[download])
|
buttons["Download"].click(save_history, inputs=[], outputs=[download])
|
||||||
buttons["Upload character"].click(upload_character, [upload_char, upload_img], [character_menu])
|
buttons["Upload character"].click(upload_character, [upload_char, upload_img], [character_menu])
|
||||||
|
|
||||||
for i in ["Generate", "Regenerate", "Replace last reply"]:
|
for i in ["Generate", "Regenerate", "Replace last reply"]:
|
||||||
buttons[i].click(lambda x: "", textbox, textbox, show_progress=False)
|
buttons[i].click(lambda x: "", textbox, textbox, show_progress=False)
|
||||||
buttons[i].click(lambda : save_history(timestamp=False), [], [], show_progress=False)
|
buttons[i].click(lambda : save_history(timestamp=False), [], [], show_progress=False)
|
||||||
|
|
||||||
textbox.submit(lambda x: "", textbox, textbox, show_progress=False)
|
textbox.submit(lambda x: "", textbox, textbox, show_progress=False)
|
||||||
textbox.submit(lambda : save_history(timestamp=False), [], [], show_progress=False)
|
textbox.submit(lambda : save_history(timestamp=False), [], [], show_progress=False)
|
||||||
|
|
||||||
character_menu.change(load_character, [character_menu, name1, name2], [name2, context, display])
|
character_menu.change(load_character, [character_menu, name1, name2], [name2, context, display])
|
||||||
upload_img_tavern.upload(upload_tavern_character, [upload_img_tavern, name1, name2], [character_menu])
|
upload_img_tavern.upload(upload_tavern_character, [upload_img_tavern, name1, name2], [character_menu])
|
||||||
upload.upload(load_history, [upload, name1, name2], [])
|
upload.upload(load_history, [upload, name1, name2], [])
|
||||||
|
Loading…
Reference in New Issue
Block a user