Spaces:
Running
Running
Update app.py (#1)
Browse files- Update app.py (01d0d8e7b29e4539a307af14782d9dcd65c804e7)
Co-authored-by: Alania <Alania@users.noreply.huggingface.co>
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,
|
29 |
import random
|
30 |
|
31 |
# Download the model files
|
32 |
-
checkpoint =
|
33 |
-
ae_model_path =
|
34 |
-
ae_config_path =
|
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 |
|