mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 22:27:29 +00:00
UI: Fix the chat "stop" event
This commit is contained in:
parent
9e82f8c394
commit
f32d26240d
2 changed files with 4 additions and 11 deletions
|
|
@ -26,8 +26,7 @@ from modules.logging_colors import logger
|
|||
from modules.text_generation import (
|
||||
generate_reply,
|
||||
get_encoded_length,
|
||||
get_max_prompt_length,
|
||||
stop_everything_event
|
||||
get_max_prompt_length
|
||||
)
|
||||
from modules.utils import delete_file, get_available_characters, save_file
|
||||
|
||||
|
|
@ -1036,13 +1035,6 @@ def handle_remove_last_click(state):
|
|||
return [history, html, last_input]
|
||||
|
||||
|
||||
def handle_stop_click(state):
|
||||
stop_everything_event()
|
||||
html = redraw_html(state['history'], state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu'])
|
||||
|
||||
return html
|
||||
|
||||
|
||||
def handle_unique_id_select(state):
|
||||
history = load_history(state['unique_id'], state['character_menu'], state['mode'])
|
||||
html = redraw_html(history, state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue