Florent Gbelidji commited on
Sync DeepSeek OCR HF job code
Browse files- ds_batch_ocr/stages.py +4 -5
ds_batch_ocr/stages.py
CHANGED
|
@@ -234,11 +234,10 @@ def run_stage_extract(settings: ExtractSettings) -> None:
|
|
| 234 |
|
| 235 |
#write document with boxes image to file
|
| 236 |
img_draw.save(ctx["sample_dir"] / "document_with_boxes.png")
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
document_with_boxes_path = (ctx["sample_dir"] / "document_with_boxes.png").relative_to(base_dir)
|
| 242 |
|
| 243 |
|
| 244 |
|
|
|
|
| 234 |
|
| 235 |
#write document with boxes image to file
|
| 236 |
img_draw.save(ctx["sample_dir"] / "document_with_boxes.png")
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
source_image_path = ctx["sample_dir"] / "source.png"
|
| 240 |
+
document_with_boxes_path = (ctx["sample_dir"] / "document_with_boxes.png")
|
|
|
|
| 241 |
|
| 242 |
|
| 243 |
|