Download backends/cpu.py from drowzeys/keys-Auto-Receipts-Studio: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/drowzeys/keys-Auto-Receipts-Studio/resolve/main/backends/cpu.py
- Command line
-
hf download hf://drowzeys/keys-Auto-Receipts-Studio/backends/cpu.py
-
curl -L -o cpu.py https://huggingface.co/drowzeys/keys-Auto-Receipts-Studio/resolve/main/backends/cpu.py
319 Bytes
| from __future__ import annotations | |
| from pathlib import Path | |
| from backends.base import OCRResult | |
| class CpuOCR: | |
| name = "cpu" | |
| def ocr(self, path: Path) -> OCRResult: | |
| raise NotImplementedError( | |
| f"RapidOCR CPU fallback is Phase 2 and must not auto-download weights (path={path})." | |
| ) | |