update Gradio depreciated .style(grid=2)

pull/58/head
Googolplexed0 2024-10-07 03:20:41 -04:00
parent 91e16d32b1
commit 1a47fbc4c4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def on_ui_tabs():
submit = gr.Button(value="Submit")
with gr.Row():
with gr.Column():
gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery").style(grid=2, object_fit="contain")
gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery", columns=2, object_fit="contain")
# 0: single 1: batch 2: batch dir
input_tab_single.select(fn=lambda: 0, inputs=[], outputs=[input_tab_state])