SkalskiP commited on
Commit
7496bd2
·
1 Parent(s): c04e1aa

test `output_gallery_component` as output

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -97,8 +97,8 @@ with gr.Blocks() as demo:
97
  submit_button_component = gr.Button(
98
  value='Submit', variant='primary', scale=0)
99
  with gr.Column():
100
- output_gallery_component = gr.Image(
101
- type='pil', image_mode='RGB', label='Generated image')
102
 
103
  submit_button_component.click(
104
  fn=process,
 
97
  submit_button_component = gr.Button(
98
  value='Submit', variant='primary', scale=0)
99
  with gr.Column():
100
+ output_gallery_component = gr.Gallery(
101
+ label='Generated image')
102
 
103
  submit_button_component.click(
104
  fn=process,