SSeries/wuwa-dev-ocr
0
Wuthering OCR Space
FastAPI + PaddleOCR server for the unified Hugging Face Docker Space.
Runtime Endpoints
GET /health?lang=krGET /wake?lang=krPOST /ocrwith form-datafileandlang
Supported lang values: kr, en, jp, zh.
CI/CD
The repository workflow .github/workflows/deploy-hf-ocr.yml runs lightweight tests for this folder, then uploads this directory to Hugging Face when main passes. Deployment uses Hugging Face Trusted Publishers with GitHub OIDC.
Required GitHub settings:
- Actions variable
HF_SPACE_REPO_ID: target Space repo id, for examplesharp/wuwa-ocr.
The workflow deploys only this subdirectory:
backend/paddle OCRLocal Checks
python -m pip install -r requirements-ci.txt
python -m py_compile main.py ocr_config.py ocr_engine.py image_processing.py ocr_service.py
pytest