Spaces:
Runtime error
Runtime error
openhands openhands commited on
Commit ·
9cab912
1
Parent(s): 67867ec
Widen Logs column to prevent vertical stacking of download icons
Browse files- ui_components.py +2 -2
ui_components.py
CHANGED
|
@@ -748,7 +748,7 @@ def create_leaderboard_display(
|
|
| 748 |
if "Score" in col or "Cost" in col or "Runtime" in col:
|
| 749 |
num_score_cost_runtime_cols += 1
|
| 750 |
dynamic_widths = [90] * num_score_cost_runtime_cols
|
| 751 |
-
fixed_end_widths = [90, 100,
|
| 752 |
# 5. Combine all the lists to create the final, fully dynamic list.
|
| 753 |
final_column_widths = fixed_start_widths + dynamic_widths + fixed_end_widths
|
| 754 |
|
|
@@ -1247,7 +1247,7 @@ def create_benchmark_details_display(
|
|
| 1247 |
datatype=df_datatypes,
|
| 1248 |
interactive=False,
|
| 1249 |
wrap=True,
|
| 1250 |
-
column_widths=[200, 80, 40, 80, 80, 80,
|
| 1251 |
show_search="search",
|
| 1252 |
elem_classes=["wrap-header-df"]
|
| 1253 |
)
|
|
|
|
| 748 |
if "Score" in col or "Cost" in col or "Runtime" in col:
|
| 749 |
num_score_cost_runtime_cols += 1
|
| 750 |
dynamic_widths = [90] * num_score_cost_runtime_cols
|
| 751 |
+
fixed_end_widths = [90, 100, 120] # Categories Attempted, Date, Logs
|
| 752 |
# 5. Combine all the lists to create the final, fully dynamic list.
|
| 753 |
final_column_widths = fixed_start_widths + dynamic_widths + fixed_end_widths
|
| 754 |
|
|
|
|
| 1247 |
datatype=df_datatypes,
|
| 1248 |
interactive=False,
|
| 1249 |
wrap=True,
|
| 1250 |
+
column_widths=[200, 80, 40, 80, 80, 80, 100, 120, 40], # Language Model, SDK Version, Attempted, Score, Cost, Runtime, Date, Logs, Download
|
| 1251 |
show_search="search",
|
| 1252 |
elem_classes=["wrap-header-df"]
|
| 1253 |
)
|