Florent Gbelidji commited on
Commit
1339a75
·
verified ·
1 Parent(s): bc40e88

Sync DeepSeek OCR HF job code

Browse files
Files changed (1) hide show
  1. 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