Commit 304bd577 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update pdf_server.py

parent bf624a38
......@@ -71,6 +71,10 @@ def ocr_pdf_serve(args: str):
config_path = args.config_path
uvicorn.run(app, host=host, port=port)
@app.get("/health")
async def health_check():
return {"status": "healthy"}
@app.post("/pdf_ocr")
# def cli(path, output_dir, method, debug_able, start_page_id, end_page_id):
async def pdf_ocr(request: ocrRequest):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment