mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-30 06:00:15 +01:00
Unescape last message (#3623)
This commit is contained in:
parent
942ad6067d
commit
1cae784761
@ -313,12 +313,12 @@ def remove_last_message(history):
|
||||
else:
|
||||
last = ['', '']
|
||||
|
||||
return last[0], history
|
||||
return html.unescape(last[0]), history
|
||||
|
||||
|
||||
def send_last_reply_to_input(history):
|
||||
if len(history['visible']) > 0:
|
||||
return history['visible'][-1][1]
|
||||
return html.unescape(history['visible'][-1][1])
|
||||
else:
|
||||
return ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user