Spaces:
Running
Running
GitHub Actions commited on
Commit ·
3fe272e
1
Parent(s): 8d4160f
🚀 Automated sync from GitHub
Browse files- src/brain_agent.py +1 -1
src/brain_agent.py
CHANGED
|
@@ -330,7 +330,7 @@ Return ONLY a valid JSON object with exactly these keys. Do not use markdown for
|
|
| 330 |
try:
|
| 331 |
response = self._safe_generate(prompt)
|
| 332 |
|
| 333 |
-
clean_json = re.search(r"\{.*\}", response.text, re.DOTALL)
|
| 334 |
if clean_json:
|
| 335 |
data = json.loads(clean_json.group(0))
|
| 336 |
return data.get("clarification", db_row["Clarification"]), data.get("pragmatics", "AI Adapted Analysis")
|
|
|
|
| 330 |
try:
|
| 331 |
response = self._safe_generate(prompt)
|
| 332 |
|
| 333 |
+
clean_json = re.search(r"\{.*\}", response.text, re.DOTALL)
|
| 334 |
if clean_json:
|
| 335 |
data = json.loads(clean_json.group(0))
|
| 336 |
return data.get("clarification", db_row["Clarification"]), data.get("pragmatics", "AI Adapted Analysis")
|