assistanttttttt commited on
Commit
20a39a8
·
1 Parent(s): 88b1d8e

Fix Gallery style usage for Gradio v5

Browse files
Files changed (1) hide show
  1. ui/layout.py +1 -1
ui/layout.py CHANGED
@@ -43,7 +43,7 @@ def build_ui(event_handler_function):
43
 
44
  # New Gallery tab to display generated images
45
  with gr.TabItem("Gallery", id=5):
46
- gallery = gr.Gallery(label="Generated Images", show_label=False).style(grid=[3], height="auto")
47
  ui_components["gallery"] = gallery
48
 
49
  ui_components["tabs"] = tabs
 
43
 
44
  # New Gallery tab to display generated images
45
  with gr.TabItem("Gallery", id=5):
46
+ gallery = gr.Gallery(label="Generated Images", show_label=False, columns=3, height="auto")
47
  ui_components["gallery"] = gallery
48
 
49
  ui_components["tabs"] = tabs