Spaces:
Sleeping
Sleeping
Commit History
-
Sprint 9: complete provider system — runtimes, adapters, registry, resolver
ClaudeUnverified signatureThree runtimes (skeleton for V1, actual execution deferred): - local_runtime.py: for locally installed models - hub_runtime.py: for HF Hub models (detects huggingface_hub availability) - api_runtime.py: for external HTTP endpoints (configurable timeout/retries) Two new adapters: - line_box_json: handles providers returning lines with bboxes but no word segmentation. Converts xyxy→xywh. Each line becomes one word. Block inferred - text_only: handles mLLM providers (Qwen, etc.) returning text without geometry. Geometry marked 'unknown' — honest about data absence. Splits text into paragraphs and lines. ALTO will be refused, PAGE may be partial Provider infrastructure: - registry.py: central index of adapters (3 families) and runtimes (3 types) with get_adapter(), get_runtime(), list_*() functions - resolver.py: ResolvedProvider — resolves ProviderProfile into concrete runtime + adapter pair. No magic: profile declares family + runtime_type - normalization/pipeline.py: updated…0580de5