Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,12 @@ from diffusers import StableDiffusionXLPipeline
|
|
| 15 |
import gradio as gr
|
| 16 |
import gc
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
device = "cuda"
|
| 19 |
dtype = torch.float16
|
| 20 |
|
|
|
|
| 15 |
import gradio as gr
|
| 16 |
import gc
|
| 17 |
|
| 18 |
+
|
| 19 |
+
from huggingface_hub import snapshot_download
|
| 20 |
+
large_files = ["controlnet_depth/diffusion_pytorch_model.safetensors", "own_controlnet/diffusion_pytorch_model.safetensors]
|
| 21 |
+
snapshot_download(repo_id="John6666/StableDesign-storage", repo_type="dataset", allow_patterns=large_files, local_dir=".")
|
| 22 |
+
|
| 23 |
+
|
| 24 |
device = "cuda"
|
| 25 |
dtype = torch.float16
|
| 26 |
|