DontPlanToEnd commited on
Commit
d61b661
1 Parent(s): 866500f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,9 +67,9 @@ def update_table(df: pd.DataFrame, query: str, param_ranges: list, columns: list
67
  if param_ranges:
68
  param_mask = pd.Series(False, index=filtered_df.index)
69
  for param_range in param_ranges:
70
- if param_range == '~1.5':
71
  param_mask |= (filtered_df['Params'] < 2.5)
72
- elif param_range == '~3':
73
  param_mask |= ((filtered_df['Params'] >= 2.5) & (filtered_df['Params'] < 6))
74
  elif param_range == '~8':
75
  param_mask |= ((filtered_df['Params'] >= 6) & (filtered_df['Params'] < 9.5))
@@ -115,7 +115,7 @@ with GraInter:
115
  with gr.Row():
116
  filter_columns_size = gr.CheckboxGroup(
117
  label="Model sizes (in billions of parameters)",
118
- choices=['~1.5', '~3', '~8', '~13', '~20', '~34', '~50', '~70+'],
119
  value=[],
120
  interactive=True,
121
  elem_id="filter-columns-size",
 
67
  if param_ranges:
68
  param_mask = pd.Series(False, index=filtered_df.index)
69
  for param_range in param_ranges:
70
+ if param_range == '~2':
71
  param_mask |= (filtered_df['Params'] < 2.5)
72
+ elif param_range == '~4':
73
  param_mask |= ((filtered_df['Params'] >= 2.5) & (filtered_df['Params'] < 6))
74
  elif param_range == '~8':
75
  param_mask |= ((filtered_df['Params'] >= 6) & (filtered_df['Params'] < 9.5))
 
115
  with gr.Row():
116
  filter_columns_size = gr.CheckboxGroup(
117
  label="Model sizes (in billions of parameters)",
118
+ choices=['~2', '~4', '~8', '~13', '~20', '~34', '~50', '~70+'],
119
  value=[],
120
  interactive=True,
121
  elem_id="filter-columns-size",