Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
·
bc58275
1
Parent(s):
fbfeead
update
Browse files- demo_gradio.py +13 -13
demo_gradio.py
CHANGED
@@ -1,15 +1,15 @@
|
|
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
|
@@ -94,7 +94,7 @@ transform = Compose(
|
|
94 |
|
95 |
model.eval()
|
96 |
|
97 |
-
|
98 |
def greet(input_image, material_exemplar):
|
99 |
|
100 |
"""
|
|
|
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
|
|
|
94 |
|
95 |
model.eval()
|
96 |
|
97 |
+
#@spaces.GPU()
|
98 |
def greet(input_image, material_exemplar):
|
99 |
|
100 |
"""
|