mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-23 00:18:20 +01:00
Better recognize the 4chan model (for #19)
This commit is contained in:
parent
aadf4e899a
commit
1e5e56fa2e
@ -155,7 +155,7 @@ def formatted_outputs(reply, model_name):
|
|||||||
if model_name.lower().startswith('galactica'):
|
if model_name.lower().startswith('galactica'):
|
||||||
reply = fix_galactica(reply)
|
reply = fix_galactica(reply)
|
||||||
return reply, reply, generate_basic_html(reply)
|
return reply, reply, generate_basic_html(reply)
|
||||||
elif model_name.lower().startswith('gpt4chan'):
|
elif model_name.lower().startswith(('gpt4chan', 'gpt-4chan', '4chan')):
|
||||||
reply = fix_gpt4chan(reply)
|
reply = fix_gpt4chan(reply)
|
||||||
return reply, 'Only applicable for GALACTICA models.', generate_4chan_html(reply)
|
return reply, 'Only applicable for GALACTICA models.', generate_4chan_html(reply)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user