Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ def infer(
|
|
167 |
cn_mode,
|
168 |
pipeline_mgr.get_hed_detector()
|
169 |
)
|
170 |
-
params['controlnet_conditioning_scale'] = cn_strength
|
171 |
|
172 |
if ip_enable:
|
173 |
pipe.load_ip_adapter(IP_ADAPTER, subfolder="models", weight_name=IP_ADAPTER_WEIGHT_NAME)
|
|
|
167 |
cn_mode,
|
168 |
pipeline_mgr.get_hed_detector()
|
169 |
)
|
170 |
+
params['controlnet_conditioning_scale'] = float(cn_strength)
|
171 |
|
172 |
if ip_enable:
|
173 |
pipe.load_ip_adapter(IP_ADAPTER, subfolder="models", weight_name=IP_ADAPTER_WEIGHT_NAME)
|