eranlevinlt commited on
Commit
96f0d05
1 Parent(s): 36354ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ hf_token = os.getenv("HF_TOKEN")
24
  # Set model download directory within Hugging Face Spaces
25
  model_path = "asset"
26
  if not os.path.exists(model_path):
27
- hf_hub_download("Lightricks/LTX-Video", local_dir=model_path, repo_type='model', token=hf_token)
28
 
29
  # Global variables to load components
30
  vae_dir = Path(model_path) / 'vae'
 
24
  # Set model download directory within Hugging Face Spaces
25
  model_path = "asset"
26
  if not os.path.exists(model_path):
27
+ snapshot_download("Lightricks/LTX-Video", local_dir=model_path, repo_type='model', token=hf_token)("Lightricks/LTX-Video", local_dir=model_path, repo_type='model', token=hf_token)
28
 
29
  # Global variables to load components
30
  vae_dir = Path(model_path) / 'vae'