Skip to content

feat(examples): add progress feedback for batch parsing#191

Open
however-yir wants to merge 2 commits intozai-org:mainfrom
however-yir:fix/example-progress-feedback
Open

feat(examples): add progress feedback for batch parsing#191
however-yir wants to merge 2 commits intozai-org:mainfrom
however-yir:fix/example-progress-feedback

Conversation

@however-yir
Copy link
Copy Markdown

Summary

  • add explicit per-file progress output in examples/example.py ([idx/total] format)
  • print a final summary with processed/skipped/failed/total counters
  • keep behavior unchanged aside from user feedback

Why

Issue #136 asks for feedback while processing PDF/document batches. This improves visibility during long runs without changing API behavior.

Closes #136

@JaredforReal
Copy link
Copy Markdown
Collaborator

This is a good one, why dont we add a tqdm for every request that num of images or pages of pdf > 1

@however-yir
Copy link
Copy Markdown
Author

@JaredforReal Thanks for the suggestion — implemented in the latest commit.\n\nUpdated to add progress for multi-input runs, and for PDF inputs the progress is weighted by page count (via ) so multi-page PDFs are reflected in progress as well.\n\nCould you please take another look?

@however-yir
Copy link
Copy Markdown
Author

@JaredforReal Thanks for the suggestion — implemented in the latest commit.

Updated examples/example.py to add tqdm progress for multi-input runs, and for PDF inputs the progress is weighted by page count (via pdfinfo) so multi-page PDFs are reflected in progress as well.

Could you please take another look?

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.

Please, add some form of feedback when processing pdf files.

2 participants