mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 14:17:09 -04:00
Fix textbox text usage in methods (#7009)
This commit is contained in:
parent
73bfc936a0
commit
8531100109
1 changed files with 6 additions and 3 deletions
|
@ -708,8 +708,9 @@ def send_last_reply_to_input(history):
|
|||
return ''
|
||||
|
||||
|
||||
def replace_last_reply(text, state):
|
||||
def replace_last_reply(textbox, state):
|
||||
history = state['history']
|
||||
text = textbox['text']
|
||||
|
||||
# Initialize metadata if not present
|
||||
if 'metadata' not in history:
|
||||
|
@ -726,8 +727,9 @@ def replace_last_reply(text, state):
|
|||
return history
|
||||
|
||||
|
||||
def send_dummy_message(text, state):
|
||||
def send_dummy_message(textbox, state):
|
||||
history = state['history']
|
||||
text = textbox['text']
|
||||
|
||||
# Initialize metadata if not present
|
||||
if 'metadata' not in history:
|
||||
|
@ -741,8 +743,9 @@ def send_dummy_message(text, state):
|
|||
return history
|
||||
|
||||
|
||||
def send_dummy_reply(text, state):
|
||||
def send_dummy_reply(textbox, state):
|
||||
history = state['history']
|
||||
text = textbox['text']
|
||||
|
||||
# Initialize metadata if not present
|
||||
if 'metadata' not in history:
|
||||
|
|
Loading…
Add table
Reference in a new issue