SkalskiP commited on
Commit
2b61647
1 Parent(s): e128936

separate image output component for mask

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -143,14 +143,10 @@ with gr.Blocks() as demo:
143
  value=20,
144
  )
145
  with gr.Column():
146
- output_gallery_component = gr.Gallery(
147
- columns=[1],
148
- rows=[2],
149
- selected_index=0,
150
- preview=True,
151
- object_fit="contain",
152
- height="auto",
153
- label='Generated image')
154
 
155
  submit_button_component.click(
156
  fn=process,
@@ -163,7 +159,8 @@ with gr.Blocks() as demo:
163
  num_inference_steps_slider_component
164
  ],
165
  outputs=[
166
- output_gallery_component
 
167
  ]
168
  )
169
 
 
143
  value=20,
144
  )
145
  with gr.Column():
146
+ output_image_component = gr.Image(
147
+ type='pil', image_mode='RGB', label='Generated image')
148
+ output_mask_component = gr.Image(
149
+ type='pil', image_mode='RGB', label='Input mask')
 
 
 
 
150
 
151
  submit_button_component.click(
152
  fn=process,
 
159
  num_inference_steps_slider_component
160
  ],
161
  outputs=[
162
+ output_image_component,
163
+ output_mask_component
164
  ]
165
  )
166