From 1a47fbc4c45f795bd6e62d44a8dd04e8e0040e00 Mon Sep 17 00:00:00 2001 From: Googolplexed0 <65880807+Googolplexed0@users.noreply.github.com> Date: Mon, 7 Oct 2024 03:20:41 -0400 Subject: [PATCH] update Gradio depreciated .style(grid=2) --- scripts/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.py b/scripts/main.py index 1cd3820..47f5f0e 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -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])