Florent Gbelidji commited on
Commit
a42caee
·
verified ·
1 Parent(s): f20834c

Sync DeepSeek OCR HF job code

Browse files
Files changed (1) hide show
  1. ds_batch_ocr/hf_io.py +2 -2
ds_batch_ocr/hf_io.py CHANGED
@@ -72,7 +72,7 @@ def resolve_stage_dir(base_dir: Path, locator: ArtifactLocator) -> Path:
72
 
73
  manifest_path = locate_manifest(base_dir)
74
  if manifest_path:
75
- return manifest_path.parent
76
 
77
  strategy = (locator.strategy or "local").lower()
78
  if strategy == "local":
@@ -87,7 +87,7 @@ def resolve_stage_dir(base_dir: Path, locator: ArtifactLocator) -> Path:
87
 
88
  manifest_path = locate_manifest(base_dir)
89
  if manifest_path:
90
- return manifest_path.parent
91
 
92
  outputs_dir = base_dir / "outputs"
93
  outputs_manifest = locate_manifest(outputs_dir)
 
72
 
73
  manifest_path = locate_manifest(base_dir)
74
  if manifest_path:
75
+ return base_dir
76
 
77
  strategy = (locator.strategy or "local").lower()
78
  if strategy == "local":
 
87
 
88
  manifest_path = locate_manifest(base_dir)
89
  if manifest_path:
90
+ return base_dir
91
 
92
  outputs_dir = base_dir / "outputs"
93
  outputs_manifest = locate_manifest(outputs_dir)