Aurele000 commited on
Commit
4e72929
·
1 Parent(s): 2c832b2

fill none

Browse files
Files changed (1) hide show
  1. agent.py +2 -0
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