craftgamesnetwork commited on
Commit
d0c1f42
·
verified ·
1 Parent(s): a4479ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -124,7 +124,7 @@ def generate(
124
  negative_prompt_2 = None # type: ignore
125
 
126
  if use_controlnet:
127
- image = pipe(
128
  prompt=prompt,
129
  image=image,
130
  control_image=canny_image,
@@ -137,7 +137,7 @@ def generate(
137
  num_inference_steps=num_inference_steps_base,
138
  generator=generator,
139
  ).images[0]
140
- return image
141
 
142
  with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
143
  gr.HTML(
 
124
  negative_prompt_2 = None # type: ignore
125
 
126
  if use_controlnet:
127
+ images = pipe(
128
  prompt=prompt,
129
  image=image,
130
  control_image=canny_image,
 
137
  num_inference_steps=num_inference_steps_base,
138
  generator=generator,
139
  ).images[0]
140
+ return images
141
 
142
  with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
143
  gr.HTML(