Update app.py
Browse files141 unmodified lines142143144145146147148149150151152153154155141 unmodified linesThis eliminates the chance of `Thought:` responses and ensures the regex matches.---### ✅ 2. Add a pre-check fallback for non-compliant agent outputsBefore applying the regex, check if the output contains backticks at all:def extract_json_from_codeagent_output(raw_output):import re, json141 unmodified lines142143144145146147148149150141 unmodified lines### ✅ 2. Add a pre-check fallback for non-compliant agent outputsdef extract_json_from_codeagent_output(raw_output):import re, json
app.py-5