icarus112 commited on
Commit
f03c2f0
·
verified ·
1 Parent(s): 6fd4cd1

Upload entrypoint.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. entrypoint.py +1 -18
entrypoint.py CHANGED
@@ -217,23 +217,6 @@ def _run_training_subprocess(cmd: list[str]) -> int:
217
  def run_job_mode() -> int:
218
  os.chdir(REPO_ROOT)
219
 
220
- # Guardian patch: fix stale overlay missing retina_contrastive
221
- _sdr_path = REPO_ROOT / 'subsystems' / 'sdr_semantic.py'
222
- if _sdr_path.exists():
223
- _text = _sdr_path.read_text()
224
- if 'retina_contrastive' not in _text:
225
- print('[guardian] patching sdr_semantic.py on disk ...', flush=True)
226
- _text = _text.replace(
227
- 'super().__init__()\n' +
228
- ' # Audit 2026-05-13: allow disabling',
229
- 'super().__init__()\n' +
230
- ' self.retina_contrastive = None # guardian patch\n' +
231
- ' # Audit 2026-05-13: allow disabling',
232
- )
233
- _sdr_path.write_text(_text)
234
- print('[guardian] patched retina_contrastive into sdr_semantic.py', flush=True)
235
-
236
-
237
  # Dynamic live patch from GitHub to bypass Space build errors
238
  GIT_REF = os.environ.get('FEATHER_GIT_REF')
239
  if GIT_REF:
@@ -305,4 +288,4 @@ def main() -> int:
305
 
306
 
307
  if __name__ == '__main__':
308
- raise SystemExit(main())
 
217
  def run_job_mode() -> int:
218
  os.chdir(REPO_ROOT)
219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  # Dynamic live patch from GitHub to bypass Space build errors
221
  GIT_REF = os.environ.get('FEATHER_GIT_REF')
222
  if GIT_REF:
 
288
 
289
 
290
  if __name__ == '__main__':
291
+ raise SystemExit(main())