fix(rapidocr_api): Remove async statement

This commit is contained in:
SWHL committed 2024-10-28 09:42:40 +08:00
1 parent 4ddd44fabf
commit 801bfae598
1 file changed
+2 -2
+2 -2
View File
@@ -66,12 +66,12 @@ processor = OCRAPIUtils()
@app.get("/")
async def root():
def root():
return {"message": "Welcome to RapidOCR API Server!"}
@app.post("/ocr")
async def ocr(
def ocr(
image_file: UploadFile = None,
image_data: str = Form(None),
use_det: bool = Form(None),