brunneis commited on
Commit
af72950
1 Parent(s): 658d06c

Update filters

Browse files
Files changed (4) hide show
  1. .gitignore +2 -0
  2. app.py +31 -6
  3. requirements.txt +2 -2
  4. src/display/utils.py +1 -1
.gitignore CHANGED
@@ -8,3 +8,5 @@ __pycache__/
8
  *ipynb
9
  .vscode/
10
  logs/
 
 
 
8
  *ipynb
9
  .vscode/
10
  logs/
11
+ env.sh
12
+ dev/
app.py CHANGED
@@ -89,6 +89,7 @@ LEADERBOARD_DF = get_leaderboard_df(
89
  def init_leaderboard(dataframe):
90
  if dataframe is None or dataframe.empty:
91
  raise ValueError("Leaderboard DataFrame is empty or None.")
 
92
  return Leaderboard(
93
  value=dataframe,
94
  datatype=[c.type for c in fields(AutoEvalColumn)],
@@ -100,13 +101,37 @@ def init_leaderboard(dataframe):
100
  search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
101
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
102
  filter_columns=[
103
- ColumnFilter(AutoEvalColumn.precision.name, type="checkboxgroup", label="Floating-point format"),
104
  ColumnFilter(
105
- AutoEvalColumn.params.name,
106
- type="slider",
107
- min=1,
108
- max=500,
109
- label="Number of parameters (billions)",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  ),
111
  ],
112
  bool_checkboxgroup_label=' ',
 
89
  def init_leaderboard(dataframe):
90
  if dataframe is None or dataframe.empty:
91
  raise ValueError("Leaderboard DataFrame is empty or None.")
92
+
93
  return Leaderboard(
94
  value=dataframe,
95
  datatype=[c.type for c in fields(AutoEvalColumn)],
 
101
  search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
102
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
103
  filter_columns=[
 
104
  ColumnFilter(
105
+ AutoEvalColumn.model_type.name,
106
+ type='checkboxgroup',
107
+ label='Training Type',
108
+ ),
109
+ ColumnFilter(
110
+ AutoEvalColumn.task00.name,
111
+ type='slider',
112
+ default=[
113
+ 0,
114
+ LEADERBOARD_DF[AutoEvalColumn.task00.name].max(),
115
+ ],
116
+ label=AutoEvalColumn.task00.name,
117
+ ),
118
+ ColumnFilter(
119
+ AutoEvalColumn.task01.name,
120
+ type='slider',
121
+ default=[
122
+ 0,
123
+ LEADERBOARD_DF[AutoEvalColumn.task01.name].max(),
124
+ ],
125
+ label=AutoEvalColumn.task01.name,
126
+ ),
127
+ ColumnFilter(
128
+ AutoEvalColumn.task02.name,
129
+ type='slider',
130
+ default=[
131
+ 0,
132
+ LEADERBOARD_DF[AutoEvalColumn.task02.name].max(),
133
+ ],
134
+ label=AutoEvalColumn.task02.name,
135
  ),
136
  ],
137
  bool_checkboxgroup_label=' ',
requirements.txt CHANGED
@@ -1,9 +1,9 @@
1
  APScheduler
2
  black
3
  datasets
4
- gradio
5
  gradio[oauth]
6
- gradio_leaderboard==0.0.11
7
  gradio_client
8
  huggingface-hub>=0.25.0
9
  matplotlib
 
1
  APScheduler
2
  black
3
  datasets
4
+ gradio==4.40.0
5
  gradio[oauth]
6
+ gradio_leaderboard==0.0.13
7
  gradio_client
8
  huggingface-hub>=0.25.0
9
  matplotlib
src/display/utils.py CHANGED
@@ -64,7 +64,7 @@ for task in Tasks:
64
  hide = True
65
  display = True
66
  model_info_columns = [
67
- ("model_type", "Type", "str", not display, hide),
68
  ("architecture", "Architecture", "str", not display, not hide),
69
  ("weight_type", "Weight type", "str", not display, hide),
70
  ("precision", "Precision", "str", not display, not hide),
 
64
  hide = True
65
  display = True
66
  model_info_columns = [
67
+ ("model_type", "Type", "str", not display, not hide),
68
  ("architecture", "Architecture", "str", not display, not hide),
69
  ("weight_type", "Weight type", "str", not display, hide),
70
  ("precision", "Precision", "str", not display, not hide),