dagloop5 commited on
Commit
c5b8109
·
verified ·
1 Parent(s): b024f1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -270,7 +270,15 @@ PENDING_LORA_KEY: str | None = None
270
  PENDING_LORA_STATE: dict[str, torch.Tensor] | None = None
271
  PENDING_LORA_STATUS: str = "No LoRA state prepared yet."
272
 
273
- checkpoint_path = hf_hub_download(repo_id="SulphurAI/Sulphur-2-base", filename="sulphur_distil_bf16.safetensors")
 
 
 
 
 
 
 
 
274
  spatial_upsampler_path = hf_hub_download(repo_id=LTX_MODEL_REPO, filename="ltx-2.3-spatial-upscaler-x2-1.1.safetensors")
275
  gemma_root = snapshot_download(repo_id=GEMMA_REPO)
276
 
 
270
  PENDING_LORA_STATE: dict[str, torch.Tensor] | None = None
271
  PENDING_LORA_STATUS: str = "No LoRA state prepared yet."
272
 
273
+ weights_dir = Path("weights")
274
+ weights_dir.mkdir(exist_ok=True)
275
+ checkpoint_path = hf_hub_download(
276
+ repo_id="SulphurAI/Sulphur-2-base",
277
+ filename="sulphur_distil_bf16.safetensors",
278
+ local_dir=str(weights_dir),
279
+ local_dir_use_symlinks=False,
280
+ )
281
+
282
  spatial_upsampler_path = hf_hub_download(repo_id=LTX_MODEL_REPO, filename="ltx-2.3-spatial-upscaler-x2-1.1.safetensors")
283
  gemma_root = snapshot_download(repo_id=GEMMA_REPO)
284