Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -299,8 +299,10 @@ def parse_json_seguro(texto: str) -> Dict:
|
|
| 299 |
|
| 300 |
try:
|
| 301 |
# 1. Remove blocos markdown repetidamente
|
| 302 |
-
|
| 303 |
-
|
|
|
|
|
|
|
| 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)
|