Spaces:
Running
on
Zero
Running
on
Zero
Update demo_gradio.py
Browse files- demo_gradio.py +12 -0
demo_gradio.py
CHANGED
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from diffusers import StableDiffusionXLControlNetInpaintPipeline, ControlNetModel
|
3 |
from rembg import remove
|
|
|
1 |
+
import huggingface_hub
|
2 |
+
|
3 |
+
huggingface_hub.snapshot_download(
|
4 |
+
repo_id='h94/IP-Adapter',
|
5 |
+
allow_patterns=[
|
6 |
+
'models/**',
|
7 |
+
'sdxl_models/**',
|
8 |
+
],
|
9 |
+
local_dir='./',
|
10 |
+
local_dir_use_symlinks=False,
|
11 |
+
)
|
12 |
+
|
13 |
import gradio as gr
|
14 |
from diffusers import StableDiffusionXLControlNetInpaintPipeline, ControlNetModel
|
15 |
from rembg import remove
|