caarleexx commited on
Commit
efafb0b
·
verified ·
1 Parent(s): b8ad8b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -299,8 +299,10 @@ def parse_json_seguro(texto: str) -> Dict:
299
 
300
  try:
301
  # 1. Remove blocos markdown repetidamente
302
- while "```
303
- texto = texto.replace("```json", "").replace("```
 
 
304
 
305
  # 2. Tenta parsear diretamente
306
  return json.loads(texto)
 
299
 
300
  try:
301
  # 1. Remove blocos markdown repetidamente
302
+
303
+
304
+ # 1. Remove blocos markdown repetidamen
305
+ texto = texto.replace("```", "")
306
 
307
  # 2. Tenta parsear diretamente
308
  return json.loads(texto)