John6666 commited on
Commit
f38b4f5
Β·
verified Β·
1 Parent(s): af4b6de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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