xeon27
commited on
Commit
·
9a48230
1
Parent(s):
aa87c61
Dynamic column widhts
Browse files
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 |
-
|
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 |
|