Florent Gbelidji commited on
Sync DeepSeek OCR HF job code
Browse files- ds_batch_ocr/stages.py +1 -1
ds_batch_ocr/stages.py
CHANGED
|
@@ -331,7 +331,7 @@ def run_stage_extract(settings: ExtractSettings) -> None:
|
|
| 331 |
batch_requests: List[Dict[str, Any]] = []
|
| 332 |
|
| 333 |
def flush_batch() -> None:
|
| 334 |
-
nonlocal batch_contexts, batch_requests
|
| 335 |
if not batch_contexts:
|
| 336 |
return
|
| 337 |
|
|
|
|
| 331 |
batch_requests: List[Dict[str, Any]] = []
|
| 332 |
|
| 333 |
def flush_batch() -> None:
|
| 334 |
+
nonlocal batch_contexts, batch_requests, document_count
|
| 335 |
if not batch_contexts:
|
| 336 |
return
|
| 337 |
|