11.01.26
This commit is contained in:
3
app.py
3
app.py
@@ -644,7 +644,8 @@ async def ocr(file: UploadFile):
|
||||
|
||||
return {
|
||||
"success": True,
|
||||
"ocr_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,
|
||||
"ocr_text": structured_data,
|
||||
"structured_data": structured_data,
|
||||
"json": json.dumps(structured_data, indent=2, ensure_ascii=False)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user