OCR 엔진 비동기 처리 전환

This commit is contained in:
kyy
2025-11-06 14:37:15 +09:00
parent f5ab36737a
commit 8a6f2ae2d8

View File

@@ -27,7 +27,7 @@ async def perform_ocr(
raise HTTPException(status_code=400, detail="파일 내용이 비어있습니다.") raise HTTPException(status_code=400, detail="파일 내용이 비어있습니다.")
# 모든 처리 로직을 OCR 엔진에 위임 # 모든 처리 로직을 OCR 엔진에 위임
result = process_document( result = await process_document(
file_bytes=file_content, file_bytes=file_content,
content_type=document.content_type, content_type=document.content_type,
filename=document.filename, filename=document.filename,