Merge pull request #58 from Googolplexed0/main

update Gradio depreciated .style(grid=2)
main
mattya_monaca 2024-11-04 15:04:03 +09:00 committed by GitHub
commit ff25bbf3ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def on_ui_tabs():
submit = gr.Button(value="Submit") submit = gr.Button(value="Submit")
with gr.Row(): with gr.Row():
with gr.Column(): 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 # 0: single 1: batch 2: batch dir
input_tab_single.select(fn=lambda: 0, inputs=[], outputs=[input_tab_state]) input_tab_single.select(fn=lambda: 0, inputs=[], outputs=[input_tab_state])