mirageco commited on
Commit
b355bb0
β€’
1 Parent(s): 00a2d22

Fix Logos display. Ensure every logo is displayed

Browse files
Files changed (2) hide show
  1. app.py +6 -3
  2. logos/manc.gif +0 -0
app.py CHANGED
@@ -485,9 +485,12 @@ with demo:
485
 
486
  # Footer with logos
487
  with gr.Row(elem_id="footer"):
488
- for logo in logo_files:
489
- logo_path = os.path.join(logos_dir, logo)
490
- gr.Image(logo_path, show_label=False, elem_id="logo-image", width=100, height=100)
 
 
 
491
 
492
  with gr.Row():
493
  with gr.Accordion("πŸ“™ Citation", open=False):
 
485
 
486
  # Footer with logos
487
  with gr.Row(elem_id="footer"):
488
+ num_columns = min(5, len(logo_files))
489
+ for i in range(0, len(logo_files), num_columns):
490
+ with gr.Row():
491
+ for logo in logo_files[i:i + num_columns]:
492
+ logo_path = os.path.join(logos_dir, logo)
493
+ gr.Image(logo_path, show_label=False, elem_id="logo-image", width=100, height=100)
494
 
495
  with gr.Row():
496
  with gr.Accordion("πŸ“™ Citation", open=False):
logos/manc.gif DELETED
Binary file (15 kB)