linoyts HF staff commited on
Commit
664a77c
1 Parent(s): b8dcdf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -211,7 +211,7 @@ def run(
211
  height=new_height,
212
  ).images[0]
213
 
214
- return out, controlnet_img
215
 
216
 
217
  with gr.Blocks(css="style.css") as demo:
@@ -268,9 +268,9 @@ with gr.Blocks(css="style.css") as demo:
268
  with gr.Column():
269
  with gr.Group():
270
  image_slider = ImageSlider(position=0.5)
271
- with gr.Row():
272
- result = gr.Image(label="result", height=400)
273
- sketch_image = gr.Image(label="sketch")
274
 
275
  inputs = [
276
  image,
@@ -283,7 +283,7 @@ with gr.Blocks(css="style.css") as demo:
283
  seed,
284
  use_hed,
285
  ]
286
- outputs = [image_slider, result, sketch_image]
287
  run_button.click(lambda x: None, inputs=None, outputs=image_slider).then(
288
  fn=run, inputs=inputs, outputs=outputs
289
  )
 
211
  height=new_height,
212
  ).images[0]
213
 
214
+ return (out, controlnet_img)
215
 
216
 
217
  with gr.Blocks(css="style.css") as demo:
 
268
  with gr.Column():
269
  with gr.Group():
270
  image_slider = ImageSlider(position=0.5)
271
+ # with gr.Row():
272
+ # result = gr.Image(label="result", height=400)
273
+ # sketch_image = gr.Image(label="sketch")
274
 
275
  inputs = [
276
  image,
 
283
  seed,
284
  use_hed,
285
  ]
286
+ outputs = [image_slider]
287
  run_button.click(lambda x: None, inputs=None, outputs=image_slider).then(
288
  fn=run, inputs=inputs, outputs=outputs
289
  )