rahul7star commited on
Commit
e5a7706
·
verified ·
1 Parent(s): bb8fcdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -30,11 +30,12 @@ def download_model():
30
  print("⬇️ Model not found. Downloading with snapshot_download into weights directory...")
31
  os.makedirs(WEIGHTS_DIR, exist_ok=True)
32
 
33
- # snapshot_download(
34
- # repo_id=MODEL_REPO,
35
- # local_dir=WEIGHTS_DIR,
36
- # local_dir_use_symlinks=False
37
- # )
 
38
  snapshot_download(
39
  repo_id="tencent/HunyuanVideo-Avatar", # Just the repo ID
40
  local_dir=WEIGHTS_DIR,
 
30
  print("⬇️ Model not found. Downloading with snapshot_download into weights directory...")
31
  os.makedirs(WEIGHTS_DIR, exist_ok=True)
32
 
33
+ snapshot_download(
34
+ repo_id=MODEL_REPO,
35
+ local_dir=WEIGHTS_DIR,
36
+ local_dir_use_symlinks=False,
37
+ ignore_patterns=["ckpts/**"] # Ignore everything inside the 'ckpts' directory
38
+ )
39
  snapshot_download(
40
  repo_id="tencent/HunyuanVideo-Avatar", # Just the repo ID
41
  local_dir=WEIGHTS_DIR,