OriLib commited on
Commit
8e50ab7
1 Parent(s): 890454c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ def process(input_image):
80
  new_im = Image.new("RGBA", pil_im.size, (0,0,0))
81
  new_im.paste(orig_image, mask=pil_im)
82
 
83
- return [input_image,new_im]
84
 
85
 
86
  block = gr.Blocks().queue()
@@ -100,7 +100,7 @@ with block:
100
  run_button = gr.Button(value="Run")
101
 
102
  with gr.Column():
103
- result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[2], height='auto')
104
  ips = [input_image]
105
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
106
 
 
80
  new_im = Image.new("RGBA", pil_im.size, (0,0,0))
81
  new_im.paste(orig_image, mask=pil_im)
82
 
83
+ return [new_im]
84
 
85
 
86
  block = gr.Blocks().queue()
 
100
  run_button = gr.Button(value="Run")
101
 
102
  with gr.Column():
103
+ result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[1], height='auto')
104
  ips = [input_image]
105
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
106