Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 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,
|