Spaces:
Running
Running
Update app.py
#1
by
Alania
- opened
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 |
|