Florent Gbelidji commited on
Sync DeepSeek OCR HF job code
Browse files- ds_batch_ocr/stages.py +8 -0
ds_batch_ocr/stages.py
CHANGED
|
@@ -519,6 +519,14 @@ def run_stage_extract(settings: ExtractSettings) -> None:
|
|
| 519 |
}
|
| 520 |
|
| 521 |
write_json(settings.output_dir / "manifest.json", manifest)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 522 |
extract_commit = settings.upload_commit_message
|
| 523 |
if settings.upload_repo_id and not extract_commit:
|
| 524 |
extract_commit = f"Upload extract stage outputs {__now_iso()}"
|
|
|
|
| 519 |
}
|
| 520 |
|
| 521 |
write_json(settings.output_dir / "manifest.json", manifest)
|
| 522 |
+
maybe_upload_dataset(
|
| 523 |
+
output_dir=settings.output_dir,
|
| 524 |
+
repo_id=settings.upload_repo_id,
|
| 525 |
+
path_in_repo=settings.upload_path_in_repo,
|
| 526 |
+
commit_message=extract_commit,
|
| 527 |
+
revision=settings.upload_revision,
|
| 528 |
+
)
|
| 529 |
+
|
| 530 |
extract_commit = settings.upload_commit_message
|
| 531 |
if settings.upload_repo_id and not extract_commit:
|
| 532 |
extract_commit = f"Upload extract stage outputs {__now_iso()}"
|