mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Minor fix in the extensions implementation
This commit is contained in:
parent
85f914b9b9
commit
5ac24b019e
@ -103,9 +103,9 @@ def chatbot_wrapper(text, max_new_tokens, do_sample, temperature, top_p, typical
|
|||||||
|
|
||||||
if visible_text is None:
|
if visible_text is None:
|
||||||
visible_text = text
|
visible_text = text
|
||||||
if shared.args.chat:
|
if shared.args.chat:
|
||||||
visible_text = visible_text.replace('\n', '<br>')
|
visible_text = visible_text.replace('\n', '<br>')
|
||||||
text = apply_extensions(text, "input")
|
text = apply_extensions(text, "input")
|
||||||
|
|
||||||
if custom_prompt_generator is None:
|
if custom_prompt_generator is None:
|
||||||
prompt = generate_chat_prompt(text, max_new_tokens, name1, name2, context, chat_prompt_size)
|
prompt = generate_chat_prompt(text, max_new_tokens, name1, name2, context, chat_prompt_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user