This commit is contained in:
2026-01-11 17:57:19 +01:00
parent a55a956b61
commit 65de305e6f

2
app.py
View File

@@ -644,7 +644,7 @@ async def ocr(file: UploadFile):
return { return {
"success": True, "success": True,
"raw_text": ocr_text[:1000] + "..." if len(ocr_text) > 1000 else ocr_text, "ocr_text": ocr_text[:1000] + "..." if len(ocr_text) > 1000 else ocr_text,
"structured_data": structured_data, "structured_data": structured_data,
"json": json.dumps(structured_data, indent=2, ensure_ascii=False) "json": json.dumps(structured_data, indent=2, ensure_ascii=False)
} }