xd11yggy commited on
Commit
95e1cf3
Β·
verified Β·
1 Parent(s): e35da21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -35,8 +35,7 @@ Never invent information. Cite sources for all facts. Use neutral, academic tone
35
  """
36
 
37
  def process_searches(response):
38
- formatted_response = response.replace("<thinking>", "\nπŸ’­ THINKING PROCESS:\n").replace("</thinking>", "\n")
39
- searches = re.findall(r'<search>(.*?)</search>', formatted_response, re.DOTALL)
40
  if searches:
41
  queries = [q.strip() for q in searches[0].split('\n') if q.strip()]
42
  return queries
 
35
  """
36
 
37
  def process_searches(response):
38
+ searches = re.findall(r'<search>(.*?)</search>', response, re.DOTALL)
 
39
  if searches:
40
  queries = [q.strip() for q in searches[0].split('\n') if q.strip()]
41
  return queries