Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

fix(rapidocr_api): Remove async statement

SWHL801bfae598df
diff --git a/api/rapidocr_api/main.py b/api/rapidocr_api/main.py
index 9eff70f..6104454 100644
--- a/api/rapidocr_api/main.py
+++ b/api/rapidocr_api/main.py
@@ -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),