PaddleOCR-VL-1.6_Demo/cpu/runner.py

15 lines
336 B
Python

"""CPU environment runner used by the root unified launcher."""
from pathlib import Path
import sys
PROJECT_ROOT = Path(__file__).resolve().parent.parent
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
from ocr_app.cli import main
if __name__ == "__main__":
raise SystemExit(main(device="cpu"))