Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def infer(
|
|
39 |
else:
|
40 |
generator = g_cpu.manual_seed(seed)
|
41 |
|
42 |
-
|
43 |
prompt,
|
44 |
conditioning_image,
|
45 |
height=size,
|
@@ -49,9 +49,9 @@ def infer(
|
|
49 |
negative_prompt=negative_prompt,
|
50 |
guidance_scale=guidance_scale,
|
51 |
controlnet_conditioning_scale=1.0,
|
52 |
-
).images
|
53 |
|
54 |
-
return
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown(
|
|
|
39 |
else:
|
40 |
generator = g_cpu.manual_seed(seed)
|
41 |
|
42 |
+
output_image = pipe(
|
43 |
prompt,
|
44 |
conditioning_image,
|
45 |
height=size,
|
|
|
49 |
negative_prompt=negative_prompt,
|
50 |
guidance_scale=guidance_scale,
|
51 |
controlnet_conditioning_scale=1.0,
|
52 |
+
).images[0]
|
53 |
|
54 |
+
return output_image
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown(
|