Spaces:
Configuration error
Configuration error
Download axis_numeric/recognizer.py from serety95/axis-numeric: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/serety95/axis-numeric/resolve/main/axis_numeric/recognizer.py
- Command line
-
hf download hf://spaces/serety95/axis-numeric/axis_numeric/recognizer.py
-
curl -L -o recognizer.py https://huggingface.co/spaces/serety95/axis-numeric/resolve/main/axis_numeric/recognizer.py
332 Bytes
| """Sequence-recognizer port; implementations may use GPU, CPU, ONNX, or Triton.""" | |
| from typing import Protocol | |
| from .contracts import BeamCandidate, SemanticClass | |
| class NumericRecognizer(Protocol): | |
| version: str | |
| def recognize(self, image_bytes: bytes, semantic_class: SemanticClass) -> list[BeamCandidate]: ... | |