Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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
|