ciaochaos commited on
Commit
741ba88
1 Parent(s): b1b1939

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,7 +39,7 @@ def infer(
39
  else:
40
  generator = g_cpu.manual_seed(seed)
41
 
42
- output_images = pipe(
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 output_images
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(