SkalskiP commited on
Commit
1539189
·
1 Parent(s): 01e58fd

test `output_gallery_component` as output

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -98,7 +98,13 @@ with gr.Blocks() as demo:
98
  value='Submit', variant='primary', scale=0)
99
  with gr.Column():
100
  output_gallery_component = gr.Gallery(
101
- object_fit="contain", height="auto", label='Generated image')
 
 
 
 
 
 
102
 
103
  submit_button_component.click(
104
  fn=process,
 
98
  value='Submit', variant='primary', scale=0)
99
  with gr.Column():
100
  output_gallery_component = gr.Gallery(
101
+ columns=[1],
102
+ rows=[2],
103
+ selected_index=0,
104
+ preview=True,
105
+ object_fit="contain",
106
+ height="auto",
107
+ label='Generated image')
108
 
109
  submit_button_component.click(
110
  fn=process,