Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ APENAS JSON VÁLIDO SEM TEXTO EXTRA."""
|
|
| 99 |
print(f"📄 RAW: {plano_raw[:200]}...")
|
| 100 |
|
| 101 |
# Limpeza agressiva de markdown/texto extra
|
| 102 |
-
plano_raw = re.sub(r'
|
| 103 |
plano_raw = re.sub(r'^.*?\[', '[', plano_raw, flags=re.DOTALL)
|
| 104 |
plano_raw = re.sub(r'\].*?$', ']', plano_raw, flags=re.DOTALL)
|
| 105 |
plano_raw = re.sub(r'[^\[\]\{\},:\"\s\w\-\.]', '', plano_raw)
|
|
|
|
| 99 |
print(f"📄 RAW: {plano_raw[:200]}...")
|
| 100 |
|
| 101 |
# Limpeza agressiva de markdown/texto extra
|
| 102 |
+
#plano_raw = re.sub(r'```|```
|
| 103 |
plano_raw = re.sub(r'^.*?\[', '[', plano_raw, flags=re.DOTALL)
|
| 104 |
plano_raw = re.sub(r'\].*?$', ']', plano_raw, flags=re.DOTALL)
|
| 105 |
plano_raw = re.sub(r'[^\[\]\{\},:\"\s\w\-\.]', '', plano_raw)
|