Roopansh commited on
Commit
cc530a9
ยท
verified ยท
1 Parent(s): 601f6be

gallery addition

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -271,11 +271,14 @@ with image_blocks as demo:
271
  is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
272
  with gr.Row():
273
  is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
274
-
 
 
275
  example = gr.Examples(
276
  inputs=imgs,
277
- examples_per_page=10,
278
- examples=human_ex_list
 
279
  )
280
 
281
  with gr.Column():
 
271
  is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
272
  with gr.Row():
273
  is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
274
+
275
+ gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery", columns=[5], rows=[3], object_fit="contain", height="auto")
276
+
277
  example = gr.Examples(
278
  inputs=imgs,
279
+ examples_per_page=4,
280
+ examples=human_ex_list,
281
+ gallery
282
  )
283
 
284
  with gr.Column():