mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 22:27:29 +00:00
Fix some events
This commit is contained in:
parent
8b7eb5c87c
commit
7cb2b1bfdb
2 changed files with 9 additions and 3 deletions
|
|
@ -1918,10 +1918,16 @@ def handle_send_instruction_click(state):
|
|||
|
||||
output = generate_chat_prompt("Input", state)
|
||||
|
||||
return output
|
||||
if state["show_two_notebook_columns"]:
|
||||
return gr.update(), output, ""
|
||||
else:
|
||||
return output, gr.update(), gr.update()
|
||||
|
||||
|
||||
def handle_send_chat_click(state):
|
||||
output = generate_chat_prompt("", state, _continue=True)
|
||||
|
||||
return output, output, ""
|
||||
if state["show_two_notebook_columns"]:
|
||||
return gr.update(), output, ""
|
||||
else:
|
||||
return output, gr.update(), gr.update()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue