Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -469,10 +469,6 @@ def parse_followup_and_tools(input_text):
|
|
469 |
response_pattern = re.compile(r'<response>(.*?)</response>', re.DOTALL)
|
470 |
response_parts = response_pattern.findall(cleaned_text)
|
471 |
combined_response = ' '.join(response_parts).strip()
|
472 |
-
|
473 |
-
# Remove tool and interact content from combined_response
|
474 |
-
combined_response = re.sub(r'<(tool|interact)>.*?</\1>', '', combined_response, flags=re.DOTALL).strip()
|
475 |
-
|
476 |
parsed_interacts = []
|
477 |
parsed_tools = []
|
478 |
|
|
|
469 |
response_pattern = re.compile(r'<response>(.*?)</response>', re.DOTALL)
|
470 |
response_parts = response_pattern.findall(cleaned_text)
|
471 |
combined_response = ' '.join(response_parts).strip()
|
|
|
|
|
|
|
|
|
472 |
parsed_interacts = []
|
473 |
parsed_tools = []
|
474 |
|