Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
|
2 |
import os
|
3 |
# Set Hugging Face cache dir to a safe writable location (works in Spaces & Docker)
|
4 |
-
os.environ["HF_HOME"] = "/workspace/.cache/huggingface"
|
5 |
-
os.makedirs("/workspace/.cache/huggingface", exist_ok=True)
|
6 |
|
7 |
import torch
|
8 |
from diffusers import StableDiffusionImg2ImgPipeline
|
|
|
1 |
|
2 |
import os
|
3 |
# Set Hugging Face cache dir to a safe writable location (works in Spaces & Docker)
|
4 |
+
# os.environ["HF_HOME"] = "/workspace/.cache/huggingface"
|
5 |
+
# os.makedirs("/workspace/.cache/huggingface", exist_ok=True)
|
6 |
|
7 |
import torch
|
8 |
from diffusers import StableDiffusionImg2ImgPipeline
|