mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-10 21:10:55 +08:00
fix(rapidocr_api): Remove async statement
This commit is contained in:
1 parent
4ddd44fabf
commit
801bfae598
1 file changed
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user