alonsosilva commited on
Commit
6cb53f4
·
verified ·
1 Parent(s): 5a2b3ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,11 +81,11 @@ def __(add_generation_prompt, messages, mo, tokenizer, tools):
81
  output2 = mo.md(tokenizer.apply_chat_template(messages,
82
  add_generation_prompt= add_generation_prompt.value,
83
  tools=tools,
84
- tokenize=False).replace("\n","\n\n").replace("#", " "))
85
  else:
86
  output2 = mo.md(tokenizer.apply_chat_template(messages,
87
  add_generation_prompt= add_generation_prompt.value,
88
- tokenize=False).replace("\n","\n\n").replace("#", " "))
89
  else:
90
  output2 = ""
91
  return (output2,)
 
81
  output2 = mo.md(tokenizer.apply_chat_template(messages,
82
  add_generation_prompt= add_generation_prompt.value,
83
  tools=tools,
84
+ tokenize=False).replace("\n","\n\n").replace("#", "\#"))
85
  else:
86
  output2 = mo.md(tokenizer.apply_chat_template(messages,
87
  add_generation_prompt= add_generation_prompt.value,
88
+ tokenize=False).replace("\n","\n\n").replace("#", "\#"))
89
  else:
90
  output2 = ""
91
  return (output2,)