Spaces:
Sleeping
Sleeping
fill none
Browse files
agent.py
CHANGED
|
@@ -141,6 +141,8 @@ supervisor = create_supervisor(
|
|
| 141 |
def clean_response(response):
|
| 142 |
match = re.search(r'FINAL ANSWER:\s*(.+)', response['supervisor']['messages'][-1].content)
|
| 143 |
answer = match.group(1).strip() if match else None
|
|
|
|
|
|
|
| 144 |
return answer
|
| 145 |
def response_from_agent(question):
|
| 146 |
|
|
|
|
| 141 |
def clean_response(response):
|
| 142 |
match = re.search(r'FINAL ANSWER:\s*(.+)', response['supervisor']['messages'][-1].content)
|
| 143 |
answer = match.group(1).strip() if match else None
|
| 144 |
+
if answer is None :
|
| 145 |
+
answer = "pas de réponse"
|
| 146 |
return answer
|
| 147 |
def response_from_agent(question):
|
| 148 |
|