Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
·
a27be48
1
Parent(s):
15725e1
update
Browse files- demo_gradio.py +9 -9
- download.py +0 -10
demo_gradio.py
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
#import spaces
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
# local_dir='./',
|
11 |
# local_dir_use_symlinks=False,
|
12 |
-
|
13 |
|
14 |
import gradio as gr
|
15 |
from diffusers import StableDiffusionXLControlNetInpaintPipeline, ControlNetModel
|
|
|
1 |
#import spaces
|
2 |
+
import huggingface_hub
|
3 |
+
|
4 |
+
huggingface_hub.snapshot_download(
|
5 |
+
repo_id='h94/IP-Adapter',
|
6 |
+
allow_patterns=[
|
7 |
+
'models/**',
|
8 |
+
'sdxl_models/**',
|
9 |
+
],
|
10 |
# local_dir='./',
|
11 |
# local_dir_use_symlinks=False,
|
12 |
+
)
|
13 |
|
14 |
import gradio as gr
|
15 |
from diffusers import StableDiffusionXLControlNetInpaintPipeline, ControlNetModel
|
download.py
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
import huggingface_hub
|
2 |
-
huggingface_hub.snapshot_download(
|
3 |
-
repo_id='h94/IP-Adapter',
|
4 |
-
allow_patterns=[
|
5 |
-
'models/**',
|
6 |
-
'sdxl_models/**',
|
7 |
-
],
|
8 |
-
local_dir='./',
|
9 |
-
local_dir_use_symlinks=False,
|
10 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|