akhaliq HF staff commited on
Commit
a0a7f49
1 Parent(s): 2d41ed4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -13,19 +13,12 @@ from huggingface_hub import snapshot_download
13
  import os
14
 
15
  # Download and load the model
16
- model_path = os.path.join(os.getcwd(), 'pyramid_flow_model')
17
  if not os.path.exists(model_path):
18
  snapshot_download("rain1011/pyramid-flow-sd3", local_dir=model_path, local_dir_use_symlinks=False, repo_type='model')
19
 
20
- # Verify model files exist
21
- dit_path = os.path.join(model_path, 'diffusion_transformer_768p')
22
- vae_path = os.path.join(model_path, 'causal_video_vae')
23
 
24
- if not os.path.exists(os.path.join(dit_path, 'diffusion_pytorch_model.safetensors')):
25
- raise FileNotFoundError(f"DiT model file not found in {dit_path}")
26
 
27
- if not os.path.exists(os.path.join(vae_path, 'diffusion_pytorch_model.safetensors')):
28
- raise FileNotFoundError(f"VAE model file not found in {vae_path}")
29
 
30
  torch.cuda.set_device(0)
31
  model_dtype, torch_dtype = 'bf16', torch.bfloat16
 
13
  import os
14
 
15
  # Download and load the model
16
+ model_path = os.path.join(os.getcwd(), 'pyramid-flow-sd3')
17
  if not os.path.exists(model_path):
18
  snapshot_download("rain1011/pyramid-flow-sd3", local_dir=model_path, local_dir_use_symlinks=False, repo_type='model')
19
 
 
 
 
20
 
 
 
21
 
 
 
22
 
23
  torch.cuda.set_device(0)
24
  model_dtype, torch_dtype = 'bf16', torch.bfloat16