Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -533,7 +533,7 @@ def validate_output_against_model(fields, text):
|
|
| 533 |
return False, err, None
|
| 534 |
try:
|
| 535 |
instance = model.model_validate(data)
|
| 536 |
-
normalized = json.dumps(instance.model_dump(), ensure_ascii=False, indent=2)
|
| 537 |
return True, "OK", normalized
|
| 538 |
except Exception as e:
|
| 539 |
try:
|
|
|
|
| 533 |
return False, err, None
|
| 534 |
try:
|
| 535 |
instance = model.model_validate(data)
|
| 536 |
+
normalized = json.dumps(instance.model_dump(mode="json"), ensure_ascii=False, indent=2)
|
| 537 |
return True, "OK", normalized
|
| 538 |
except Exception as e:
|
| 539 |
try:
|