mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 18:45:09 +02:00
Unescape last message (#3623)
This commit is contained in:
parent
942ad6067d
commit
1cae784761
1 changed files with 2 additions and 2 deletions
|
@ -313,12 +313,12 @@ def remove_last_message(history):
|
||||||
else:
|
else:
|
||||||
last = ['', '']
|
last = ['', '']
|
||||||
|
|
||||||
return last[0], history
|
return html.unescape(last[0]), history
|
||||||
|
|
||||||
|
|
||||||
def send_last_reply_to_input(history):
|
def send_last_reply_to_input(history):
|
||||||
if len(history['visible']) > 0:
|
if len(history['visible']) > 0:
|
||||||
return history['visible'][-1][1]
|
return html.unescape(history['visible'][-1][1])
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue