umer1995 commited on
Commit
64fa5e3
·
verified ·
1 Parent(s): ed3c935

Deploy NFA Track R FLUX.2 Fun CN ZeroGPU (real depth CN)

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -97,12 +97,15 @@ def _resolve_cn_path() -> Path:
97
 
98
  def _ensure_weights() -> None:
99
  """Resolve mounted Hub volumes, or (last resort) selective download."""
100
- global _WEIGHTS_READY, MODEL_DIR
101
  if MODEL_DIR.is_dir() and (MODEL_DIR / "model_index.json").is_file():
102
  try:
103
- _resolve_cn_path()
104
  _WEIGHTS_READY = True
105
- print(f"[nfa-fun-cn] using mounts model={MODEL_DIR} cn={_CN_FILE_PATH}", flush=True)
 
 
 
106
  return
107
  except FileNotFoundError:
108
  pass
 
97
 
98
  def _ensure_weights() -> None:
99
  """Resolve mounted Hub volumes, or (last resort) selective download."""
100
+ global _WEIGHTS_READY, MODEL_DIR, _CN_FILE_PATH
101
  if MODEL_DIR.is_dir() and (MODEL_DIR / "model_index.json").is_file():
102
  try:
103
+ cn_path = _resolve_cn_path()
104
  _WEIGHTS_READY = True
105
+ print(
106
+ f"[nfa-fun-cn] using mounts model={MODEL_DIR} cn={cn_path}",
107
+ flush=True,
108
+ )
109
  return
110
  except FileNotFoundError:
111
  pass