Florent Gbelidji commited on
Sync DeepSeek OCR HF job code
Browse files- ds_batch_ocr/stages.py +1 -0
ds_batch_ocr/stages.py
CHANGED
|
@@ -154,6 +154,7 @@ def run_stage_extract(settings: ExtractSettings) -> None:
|
|
| 154 |
sample_dir.mkdir(parents=True, exist_ok=True)
|
| 155 |
|
| 156 |
raw_image = sample["images"][0]
|
|
|
|
| 157 |
# if isinstance(raw_image, Image.Image):
|
| 158 |
# image = raw_image.copy()
|
| 159 |
# else:
|
|
|
|
| 154 |
sample_dir.mkdir(parents=True, exist_ok=True)
|
| 155 |
|
| 156 |
raw_image = sample["images"][0]
|
| 157 |
+
image = raw_image.copy()
|
| 158 |
# if isinstance(raw_image, Image.Image):
|
| 159 |
# image = raw_image.copy()
|
| 160 |
# else:
|