Spaces:
Runtime error
Runtime error
Commit
•
30c8234
1
Parent(s):
427638b
patch num 2 for alphabetical configs/splits (#14)
Browse files- patch num 2 for alphabetical configs/splits (ca5059ad2d7f0834102f4a52f6510c8e9c984712)
Co-authored-by: Sanchit Gandhi <sanchit-gandhi@users.noreply.huggingface.co>
app.py
CHANGED
@@ -194,7 +194,7 @@ if len(dataset_df) > 0:
|
|
194 |
selectable_configs.sort(key=lambda name: name.lower())
|
195 |
|
196 |
if "-unspecified-" in selectable_configs:
|
197 |
-
selectable_configs.
|
198 |
selectable_configs = ["-unspecified-"] + selectable_configs
|
199 |
|
200 |
if dataset != "-any-":
|
@@ -210,7 +210,7 @@ if len(dataset_df) > 0:
|
|
210 |
selectable_splits.sort(key=lambda name: name.lower())
|
211 |
|
212 |
if "-unspecified-" in selectable_splits:
|
213 |
-
selectable_splits.
|
214 |
selectable_splits = ["-unspecified-"] + selectable_splits
|
215 |
|
216 |
split = st.sidebar.selectbox(
|
|
|
194 |
selectable_configs.sort(key=lambda name: name.lower())
|
195 |
|
196 |
if "-unspecified-" in selectable_configs:
|
197 |
+
selectable_configs.remove("-unspecified-")
|
198 |
selectable_configs = ["-unspecified-"] + selectable_configs
|
199 |
|
200 |
if dataset != "-any-":
|
|
|
210 |
selectable_splits.sort(key=lambda name: name.lower())
|
211 |
|
212 |
if "-unspecified-" in selectable_splits:
|
213 |
+
selectable_splits.remove("-unspecified-")
|
214 |
selectable_splits = ["-unspecified-"] + selectable_splits
|
215 |
|
216 |
split = st.sidebar.selectbox(
|