rwayz commited on
Commit
220eb38
·
verified ·
1 Parent(s): 324f4bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -21,7 +21,10 @@ history_log = []
21
  show_history_flag = False
22
 
23
  def clean_response(text):
24
- return re.sub(r"</?think>", "", text).strip()
 
 
 
25
 
26
  def chatbot_response(user_input, model_name):
27
  model_id = MODELS[model_name]
 
21
  show_history_flag = False
22
 
23
  def clean_response(text):
24
+ text = re.sub(r"</?think>", "", text)
25
+ text = re.sub(r"\\boxed\{.*?\}", "", text)
26
+
27
+ return text.strip()
28
 
29
  def chatbot_response(user_input, model_name):
30
  model_id = MODELS[model_name]