ocr-bench 0.0.2__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/PKG-INFO +1 -1
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/pyproject.toml +1 -1
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/cli.py +13 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/publish.py +2 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/run.py +12 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/README.md +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/__init__.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/backends.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/dataset.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/elo.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/judge.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/py.typed +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/space.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/static/style.css +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/templates/base.html +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/templates/comparison_card.html +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/templates/comparisons.html +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/templates/leaderboard.html +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/templates/stats_panel.html +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/validate.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/viewer.py +0 -0
- {ocr_bench-0.0.2 → ocr_bench-0.0.3}/src/ocr_bench/web.py +0 -0
|
@@ -606,6 +606,19 @@ def cmd_publish(args: argparse.Namespace) -> None:
|
|
|
606
606
|
|
|
607
607
|
api.add_space_variable(repo_id=space_id, key="REPOS", value=results)
|
|
608
608
|
|
|
609
|
+
# Update Space metadata to link to results dataset
|
|
610
|
+
try:
|
|
611
|
+
from huggingface_hub import metadata_update
|
|
612
|
+
|
|
613
|
+
metadata_update(
|
|
614
|
+
space_id,
|
|
615
|
+
{"datasets": [results], "tags": ["ocr-bench"]},
|
|
616
|
+
repo_type="space",
|
|
617
|
+
overwrite=True,
|
|
618
|
+
)
|
|
619
|
+
except Exception as exc:
|
|
620
|
+
logger.warning("space_metadata_update_failed", error=str(exc))
|
|
621
|
+
|
|
609
622
|
url = f"https://huggingface.co/spaces/{space_id}"
|
|
610
623
|
console.print(f"[green]Space published![/green] {url}")
|
|
611
624
|
|
|
@@ -54,6 +54,18 @@ MODEL_REGISTRY: dict[str, ModelConfig] = {
|
|
|
54
54
|
size="2.1B",
|
|
55
55
|
default_flavor="l4x1",
|
|
56
56
|
),
|
|
57
|
+
"qianfan-ocr": ModelConfig(
|
|
58
|
+
script="https://huggingface.co/datasets/uv-scripts/ocr/raw/main/qianfan-ocr.py",
|
|
59
|
+
model_id="baidu/Qianfan-OCR",
|
|
60
|
+
size="4.7B",
|
|
61
|
+
default_flavor="l4x1",
|
|
62
|
+
),
|
|
63
|
+
"dots-mocr": ModelConfig(
|
|
64
|
+
script="https://huggingface.co/datasets/uv-scripts/ocr/raw/main/dots-mocr.py",
|
|
65
|
+
model_id="rednote-hilab/dots.mocr",
|
|
66
|
+
size="3B",
|
|
67
|
+
default_flavor="l4x1",
|
|
68
|
+
),
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
DEFAULT_MODELS = ["glm-ocr", "deepseek-ocr", "lighton-ocr-2", "dots-ocr", "firered-ocr"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|