Spaces:
Runtime error
Runtime error
mattyamonaca
commited on
Commit
•
3cde1aa
1
Parent(s):
82e16cd
fix pipe
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ cn_lineart_dir = f"{path}/controlnet/lineart"
|
|
21 |
load_cn_model(cn_lineart_dir)
|
22 |
load_cn_config(cn_lineart_dir)
|
23 |
pipe = get_cn_pipeline()
|
24 |
-
|
25 |
|
26 |
@spaces.GPU()
|
27 |
def generate(detectors, prompt, negative_prompt, reference_flg=False, reference_img=None):
|
|
|
21 |
load_cn_model(cn_lineart_dir)
|
22 |
load_cn_config(cn_lineart_dir)
|
23 |
pipe = get_cn_pipeline()
|
24 |
+
pipe.to("cuda")
|
25 |
|
26 |
@spaces.GPU()
|
27 |
def generate(detectors, prompt, negative_prompt, reference_flg=False, reference_img=None):
|