agazo commited on
Commit
301c69e
·
verified ·
1 Parent(s): cd354b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ class LangChainAgent:
58
  })
59
  output = result.get("output", "No answer returned.")
60
  print(f"Agent response: {output}")
61
- match = re.search(r"FINAL ANSWER:\s*(.*)", response['output'])
62
  if match:
63
  return match.group(1).strip()
64
  else:
 
58
  })
59
  output = result.get("output", "No answer returned.")
60
  print(f"Agent response: {output}")
61
+ match = re.search(r"FINAL ANSWER:\s*(.*)", output)
62
  if match:
63
  return match.group(1).strip()
64
  else: