evgeniypark commited on
Commit
b7b63ca
·
verified ·
1 Parent(s): fb69d01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ class BasicAgent:
32
  print(f"Agent returning answer: {agent_answer}")
33
  pattern = re.compile(r"<answer>(.*?)</answer>", re.DOTALL | re.IGNORECASE)
34
 
35
- m = pattern.search(text)
36
  return m.group(1) if m else agent_answer
37
 
38
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
32
  print(f"Agent returning answer: {agent_answer}")
33
  pattern = re.compile(r"<answer>(.*?)</answer>", re.DOTALL | re.IGNORECASE)
34
 
35
+ m = pattern.search(agent_answer)
36
  return m.group(1) if m else agent_answer
37
 
38
  def run_and_submit_all( profile: gr.OAuthProfile | None):