xeon27 commited on
Commit
9a48230
·
1 Parent(s): aa87c61

Dynamic column widhts

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def init_leaderboard(dataframe, benchmark_type):
68
  return gr.components.Dataframe(
69
  value=dataframe,
70
  datatype=[c.type for c in AutoEvalColumnSubset],
71
- # column_widths=[f"{str(10*len(c.name))}px" if c.name != "Model" else "250px" for c in AutoEvalColumnSubset],
72
  )
73
 
74
 
 
68
  return gr.components.Dataframe(
69
  value=dataframe,
70
  datatype=[c.type for c in AutoEvalColumnSubset],
71
+ column_widths=[f"{25*len(c.name)}px" if c.name != "Model" else "250px" for c in AutoEvalColumnSubset],
72
  )
73
 
74