sanchit-gandhi HF staff commited on
Commit
d0a41a0
·
1 Parent(s): b6e5f54

patch for alphabetical configs/splits

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -193,7 +193,7 @@ if len(dataset_df) > 0:
193
  selectable_configs = list(set(dataset_df["config"]))
194
  selectable_configs.sort(key=lambda name: name.lower())
195
 
196
- if "-unspecified-" in config_set:
197
  selectable_configs.discard("-unspecified-")
198
  selectable_configs = ["-unspecified-"] + selectable_configs
199
 
@@ -209,7 +209,7 @@ if len(dataset_df) > 0:
209
  selectable_splits = list(set(dataset_df["split"]))
210
  selectable_splits.sort(key=lambda name: name.lower())
211
 
212
- if "-unspecified-" in split_set:
213
  selectable_splits.discard("-unspecified-")
214
  selectable_splits = ["-unspecified-"] + selectable_splits
215
 
 
193
  selectable_configs = list(set(dataset_df["config"]))
194
  selectable_configs.sort(key=lambda name: name.lower())
195
 
196
+ if "-unspecified-" in selectable_configs:
197
  selectable_configs.discard("-unspecified-")
198
  selectable_configs = ["-unspecified-"] + selectable_configs
199
 
 
209
  selectable_splits = list(set(dataset_df["split"]))
210
  selectable_splits.sort(key=lambda name: name.lower())
211
 
212
+ if "-unspecified-" in selectable_splits:
213
  selectable_splits.discard("-unspecified-")
214
  selectable_splits = ["-unspecified-"] + selectable_splits
215