rahul7star commited on
Commit
e31f052
·
verified ·
1 Parent(s): 5aa85a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -30,10 +30,16 @@ 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="https://huggingface.co/tencent/HunyuanVideo-Avatar/blob/main/ckpts/hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states_fp8.pt",
35
- local_dir=WEIGHTS_DIR,
36
- local_dir_use_symlinks=False
 
37
  )
38
 
39
  if not os.path.isfile(CHECKPOINT_FILE):
 
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,
41
+ local_dir_use_symlinks=False,
42
+ allow_patterns=["ckpts/hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states_fp8.pt"]
43
  )
44
 
45
  if not os.path.isfile(CHECKPOINT_FILE):