mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Fix an escaping bug
This commit is contained in:
parent
a74dd9003f
commit
2cb07065ec
@ -152,9 +152,9 @@ def generate_reply_wrapper(question, state, stopping_strings=None):
|
|||||||
def formatted_outputs(reply, model_name):
|
def formatted_outputs(reply, model_name):
|
||||||
if any(s in model_name for s in ['gpt-4chan', 'gpt4chan']):
|
if any(s in model_name for s in ['gpt-4chan', 'gpt4chan']):
|
||||||
reply = fix_gpt4chan(reply)
|
reply = fix_gpt4chan(reply)
|
||||||
return reply, generate_4chan_html(reply)
|
return html.unescape(reply), generate_4chan_html(reply)
|
||||||
else:
|
else:
|
||||||
return reply, generate_basic_html(reply)
|
return html.unescape(reply), generate_basic_html(reply)
|
||||||
|
|
||||||
|
|
||||||
def fix_gpt4chan(s):
|
def fix_gpt4chan(s):
|
||||||
|
Loading…
Reference in New Issue
Block a user