gigant Alania commited on
Commit
7151d9a
1 Parent(s): 46d9141

Update app.py (#1)

Browse files

- Update app.py (01d0d8e7b29e4539a307af14782d9dcd65c804e7)


Co-authored-by: Alania <Alania@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,13 +25,13 @@ from cloob_training import model_pt, pretrained
25
  import ldm.models.autoencoder
26
  from diffusion import sampling, utils
27
  import train_latent_diffusion as train
28
- from huggingface_hub import hf_hub_url, cached_download
29
  import random
30
 
31
  # Download the model files
32
- checkpoint = cached_download(hf_hub_url("huggan/distill-ccld-wa", filename="model_student.ckpt"))
33
- ae_model_path = cached_download(hf_hub_url("huggan/ccld_wa", filename="ae_model.ckpt"))
34
- ae_config_path = cached_download(hf_hub_url("huggan/ccld_wa", filename="ae_model.yaml"))
35
 
36
  # Define a few utility functions
37
 
 
25
  import ldm.models.autoencoder
26
  from diffusion import sampling, utils
27
  import train_latent_diffusion as train
28
+ from huggingface_hub import hf_hub_url, hf_hub_download
29
  import random
30
 
31
  # Download the model files
32
+ checkpoint = hf_hub_download(hf_hub_url("huggan/distill-ccld-wa", filename="model_student.ckpt"))
33
+ ae_model_path = hf_hub_download(hf_hub_url("huggan/ccld_wa", filename="ae_model.ckpt"))
34
+ ae_config_path = hf_hub_download(hf_hub_url("huggan/ccld_wa", filename="ae_model.yaml"))
35
 
36
  # Define a few utility functions
37