Gallery: Set preview to True, allow custom height

This commit is contained in:
catboxanon
2023-08-18 05:15:30 -04:00
parent 541ef9247c
commit 44d4e7c500
2 changed files with 2 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ Requested path was: {f}
with gr.Column(variant='panel', elem_id=f"{tabname}_results"):
with gr.Group(elem_id=f"{tabname}_gallery_container"):
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"{tabname}_gallery", columns=4)
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"{tabname}_gallery", columns=4, preview=True, height=shared.opts.gallery_height or None)
generation_info = None
with gr.Column():