diff --git a/api/rapidocr_api/main.py b/api/rapidocr_api/main.py index 9eff70f9..6104454d 100644 --- a/api/rapidocr_api/main.py +++ b/api/rapidocr_api/main.py @@ -66,12 +66,12 @@ def __call__( @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),