Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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*(.*)",
|
| 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:
|