Spaces:
Runtime error
Runtime error
zhiweili
commited on
Commit
•
6f7df52
1
Parent(s):
cf6817a
download mode
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ with open(system_prompt_i2v_path, "r") as f:
|
|
41 |
|
42 |
# Set model download directory within Hugging Face Spaces
|
43 |
model_path = "asset"
|
44 |
-
if not os.path.exists(model_path):
|
45 |
-
|
46 |
|
47 |
# Global variables to load components
|
48 |
vae_dir = Path(model_path) / "vae"
|
|
|
41 |
|
42 |
# Set model download directory within Hugging Face Spaces
|
43 |
model_path = "asset"
|
44 |
+
# if not os.path.exists(model_path):
|
45 |
+
snapshot_download("Lightricks/LTX-Video", local_dir=model_path, repo_type="model", token=hf_token)
|
46 |
|
47 |
# Global variables to load components
|
48 |
vae_dir = Path(model_path) / "vae"
|