Spaces:
Runtime error
Runtime error
patch for alphabetical configs/splits
#13
by
sanchit-gandhi
HF staff
- opened
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
|
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
|
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 |
|