xeon27 commited on
Commit
4a65236
·
1 Parent(s): f00efbc

Dynamic column widths

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def init_leaderboard(dataframe, benchmark_type):
96
  return gr.components.Dataframe(
97
  value=dataframe,
98
  datatype=[c.type for c in AutoEvalColumnSubset],
99
- column_widths=["100px" for c in AutoEvalColumnSubset],
100
  )
101
 
102
 
 
96
  return gr.components.Dataframe(
97
  value=dataframe,
98
  datatype=[c.type for c in AutoEvalColumnSubset],
99
+ column_widths=[f"{str(10*len(c.name))}px" for c in AutoEvalColumnSubset if c.name != "Model" else None],
100
  )
101
 
102