elmadany commited on
Commit
e3b1a31
·
verified ·
1 Parent(s): 7c374d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -234,6 +234,10 @@ div[class*="gradio-container"] .prose td:not(:first-child) {
234
  width:auto !important;
235
  text-align: center;
236
  }
 
 
 
 
237
  """
238
 
239
  introduction_text = """
@@ -372,7 +376,7 @@ with gr.Blocks(title="Sahara Benchmark Leaderboards", css=google_style_css) as d
372
  return new_title, df_to_html(df)
373
  lang_dropdown.change(update_lang_table, lang_dropdown, outputs=[lang_title_component, lang_table_component])
374
  # --- NEW TAB FOR MODEL-SPECIFIC LEADERBOARD ---
375
- with gr.Tab("Model-Specific Leaderboard", id="models"):
376
  gr.HTML("<br><br><center><h2>Model-Specific Leaderboard (per task)</h2></center><br>")
377
 
378
  initial_model_name = MODEL_NAME_LIST[0]
@@ -411,5 +415,4 @@ with gr.Blocks(title="Sahara Benchmark Leaderboards", css=google_style_css) as d
411
 
412
 
413
  if __name__ == "__main__":
414
- demo.launch(share=True)
415
-
 
234
  width:auto !important;
235
  text-align: center;
236
  }
237
+ /* --- CUSTOM RULE FOR THE SECOND CHILD --- */
238
+ #model_specific_table .prose td:nth-child(2) {
239
+ text-align: left; /* Example: A custom alignment */
240
+ }
241
  """
242
 
243
  introduction_text = """
 
376
  return new_title, df_to_html(df)
377
  lang_dropdown.change(update_lang_table, lang_dropdown, outputs=[lang_title_component, lang_table_component])
378
  # --- NEW TAB FOR MODEL-SPECIFIC LEADERBOARD ---
379
+ with gr.Tab("Model-Specific Leaderboard", id="models", elem_id="model_specific_table"):
380
  gr.HTML("<br><br><center><h2>Model-Specific Leaderboard (per task)</h2></center><br>")
381
 
382
  initial_model_name = MODEL_NAME_LIST[0]
 
415
 
416
 
417
  if __name__ == "__main__":
418
+ demo.launch(share=True)