Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,6 @@ def download_coz_support_models():
|
|
52 |
repo_id=model_info['repo_id'],
|
53 |
filename=model_info['filename'],
|
54 |
token=HF_AUTH_TOKEN,
|
55 |
-
cache_dir="./hf_cache",
|
56 |
force_download=False,
|
57 |
resume_download=True
|
58 |
)
|
@@ -80,8 +79,7 @@ try:
|
|
80 |
from diffusers import StableDiffusionPipeline
|
81 |
StableDiffusionPipeline.from_pretrained(
|
82 |
"stabilityai/stable-diffusion-3-medium-diffusers",
|
83 |
-
use_auth_token=HF_AUTH_TOKEN
|
84 |
-
cache_dir="./hf_cache"
|
85 |
)
|
86 |
logger.info("Stable Diffusion model configuration preloaded.")
|
87 |
except Exception as e:
|
|
|
52 |
repo_id=model_info['repo_id'],
|
53 |
filename=model_info['filename'],
|
54 |
token=HF_AUTH_TOKEN,
|
|
|
55 |
force_download=False,
|
56 |
resume_download=True
|
57 |
)
|
|
|
79 |
from diffusers import StableDiffusionPipeline
|
80 |
StableDiffusionPipeline.from_pretrained(
|
81 |
"stabilityai/stable-diffusion-3-medium-diffusers",
|
82 |
+
use_auth_token=HF_AUTH_TOKEN
|
|
|
83 |
)
|
84 |
logger.info("Stable Diffusion model configuration preloaded.")
|
85 |
except Exception as e:
|