Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ class BasicAgent:
|
|
| 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):
|
| 39 |
"""
|
|
|
|
| 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 str(agent_answer)
|
| 37 |
|
| 38 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 39 |
"""
|