wedyanessam commited on
Commit
c4bb4e4
·
verified ·
1 Parent(s): 6af55bd

Update download_models.py

Browse files
Files changed (1) hide show
  1. download_models.py +8 -8
download_models.py CHANGED
@@ -2,13 +2,13 @@ import os
2
  from huggingface_hub import snapshot_download
3
 
4
  def maybe_download_model(repo_id, local_dir):
5
- if not os.path.exists(local_dir) or not os.listdir(local_dir):
6
- print(f"📥 Downloading model from {repo_id} ...")
7
- snapshot_download(
8
- repo_id=repo_id,
9
- local_dir=local_dir,
10
- local_dir_use_symlinks=False
11
- )
12
  else:
13
- print(f"✅ Model already exists at {local_dir}, skipping download.")
 
 
 
 
14
 
 
2
  from huggingface_hub import snapshot_download
3
 
4
  def maybe_download_model(repo_id, local_dir):
5
+ if not os.path.exists(local_dir):
6
+ print(f"Downloading {repo_id} into {local_dir}")
7
+ snapshot_download(repo_id=repo_id, local_dir=local_dir, local_dir_use_symlinks=False)
 
 
 
 
8
  else:
9
+ print(f"✅ {repo_id} already downloaded to {local_dir}")
10
+
11
+ if __name__ == "__main__":
12
+ maybe_download_model("wedyanessam/fantasy-talking-model2", "./models/fantasytalking_model")
13
+ maybe_download_model("guoyww/wan-video", "./models/Wan2.1-I2V-14B-720P")
14