Zenaight commited on
Commit
f3acecd
·
verified ·
1 Parent(s): 4096cd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -790,8 +790,7 @@ def parse_extracted_json(raw_text: str) -> dict:
790
  if lines and lines[0].startswith("```"): lines = lines[1:]
791
  if lines and lines[-1].startswith("```"): lines = lines[:-1]
792
  try:
793
- return json.loads("
794
- ".join(lines).strip())
795
  except Exception:
796
  return {}
797
  return {}
 
790
  if lines and lines[0].startswith("```"): lines = lines[1:]
791
  if lines and lines[-1].startswith("```"): lines = lines[:-1]
792
  try:
793
+ return json.loads("\n".join(lines).strip())
 
794
  except Exception:
795
  return {}
796
  return {}