Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 [
|
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=[
|
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 |
|