OCR 엔진 비동기 처리 전환
This commit is contained in:
@@ -27,7 +27,7 @@ async def perform_ocr(
|
||||
raise HTTPException(status_code=400, detail="파일 내용이 비어있습니다.")
|
||||
|
||||
# 모든 처리 로직을 OCR 엔진에 위임
|
||||
result = process_document(
|
||||
result = await process_document(
|
||||
file_bytes=file_content,
|
||||
content_type=document.content_type,
|
||||
filename=document.filename,
|
||||
|
||||
Reference in New Issue
Block a user