Alania commited on
Commit
01d0d8e
1 Parent(s): fee4293

Update app.py

Browse files
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