Update app.py
Browse files
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(
|
| 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):
|