Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -337,7 +337,7 @@ def extract_info(template, text):
|
|
| 337 |
# Try to parse as JSON
|
| 338 |
try:
|
| 339 |
extracted = json.loads(json_text)
|
| 340 |
-
return "β
Erfolgreich extrahiert", json.dumps(extracted, indent=2)
|
| 341 |
except json.JSONDecodeError:
|
| 342 |
return "β JSON Parsing Fehler", json_text
|
| 343 |
|
|
|
|
| 337 |
# Try to parse as JSON
|
| 338 |
try:
|
| 339 |
extracted = json.loads(json_text)
|
| 340 |
+
return "β
Erfolgreich extrahiert", json.dumps(extracted, ensure_ascii=False, indent=2)
|
| 341 |
except json.JSONDecodeError:
|
| 342 |
return "β JSON Parsing Fehler", json_text
|
| 343 |
|