Skip to content

support ONNX format model countDownloads for PaddleOCR#2248

Merged
Wauplin merged 1 commit into
huggingface:mainfrom
TingquanGao:fix_ppocr
Jun 22, 2026
Merged

support ONNX format model countDownloads for PaddleOCR#2248
Wauplin merged 1 commit into
huggingface:mainfrom
TingquanGao:fix_ppocr

Conversation

@TingquanGao

@TingquanGao TingquanGao commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Note

Low Risk
One-line metadata query change for download analytics only; no runtime or auth impact.

Overview
PaddleOCR Hub download counting now treats inference.onnx as a model artifact, alongside existing safetensors and inference.pdiparams paths.

The change is a single countDownloads Elasticsearch clause in model-libraries.ts, so ONNX-only PaddleOCR repos are included in library download stats instead of being undercounted.

Reviewed by Cursor Bugbot for commit 799db5f. Bugbot is set up for automated code reviews on this repo. Configure here.

@TingquanGao

Copy link
Copy Markdown
Contributor Author

Add support for counting downloads of ONNX-format models in PaddleOCR.

Example: https://huggingface.co/PaddlePaddle/PP-OCRv6_medium_rec_onnx/tree/main

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

(expect 2-3 before getting it live on the Hub)

@Wauplin Wauplin merged commit ccf7b9e into huggingface:main Jun 22, 2026
6 checks passed
@TingquanGao TingquanGao deleted the fix_ppocr branch June 24, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants