xeon27
commited on
Commit
·
ae8fcfd
1
Parent(s):
4a65236
Dynamic column widths
Browse files
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=[f"{str(10*len(c.name))}px"
|
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" if c.name != "Model" else None for c in AutoEvalColumnSubset],
|
100 |
)
|
101 |
|
102 |
|