Spaces:
Runtime error
Runtime error
improvmens
Browse files
app.py
CHANGED
@@ -225,8 +225,6 @@ def create_image(
|
|
225 |
controlnet_conditioning_scale=float(control_scale),
|
226 |
neg_content_prompt=neg_content_prompt,
|
227 |
neg_content_scale=neg_content_scale,
|
228 |
-
width=512,
|
229 |
-
height=512,
|
230 |
)
|
231 |
else:
|
232 |
images = ip_model.generate(
|
@@ -240,8 +238,6 @@ def create_image(
|
|
240 |
seed=seed,
|
241 |
image=canny_map,
|
242 |
controlnet_conditioning_scale=float(control_scale),
|
243 |
-
width=512,
|
244 |
-
height=512,
|
245 |
)
|
246 |
image = images[0]
|
247 |
with tempfile.NamedTemporaryFile(suffix=".jpg", delete=False) as tmpfile:
|
|
|
225 |
controlnet_conditioning_scale=float(control_scale),
|
226 |
neg_content_prompt=neg_content_prompt,
|
227 |
neg_content_scale=neg_content_scale,
|
|
|
|
|
228 |
)
|
229 |
else:
|
230 |
images = ip_model.generate(
|
|
|
238 |
seed=seed,
|
239 |
image=canny_map,
|
240 |
controlnet_conditioning_scale=float(control_scale),
|
|
|
|
|
241 |
)
|
242 |
image = images[0]
|
243 |
with tempfile.NamedTemporaryFile(suffix=".jpg", delete=False) as tmpfile:
|