Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ import clip
|
|
16 |
from PIL import Image
|
17 |
|
18 |
from huggingface_hub import hf_hub_download
|
19 |
-
ckpt = hf_hub_download(repo_id="lambdalabs/image-mixer", filename="image-mixer-pruned.ckpt")
|
20 |
-
config = hf_hub_download(repo_id="lambdalabs/image-mixer", filename="image-mixer-config.yaml")
|
21 |
|
22 |
device = "cuda:0"
|
23 |
model = load_model_from_config(config, ckpt, device=device, verbose=False)
|
|
|
16 |
from PIL import Image
|
17 |
|
18 |
from huggingface_hub import hf_hub_download
|
19 |
+
ckpt = hf_hub_download(repo_id="lambdalabs/image-mixer", filename="image-mixer-pruned.ckpt", cache_dir="/data/.cache")
|
20 |
+
config = hf_hub_download(repo_id="lambdalabs/image-mixer", filename="image-mixer-config.yaml", cache_dir="/data/.cache")
|
21 |
|
22 |
device = "cuda:0"
|
23 |
model = load_model_from_config(config, ckpt, device=device, verbose=False)
|