Skip to content

Commit

Permalink
fix(rapidocr_api): Remove async statement
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Oct 28, 2024
1 parent 4ddd44f commit 801bfae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/rapidocr_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 801bfae

Please sign in to comment.