Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
·
5fce9cb
1
Parent(s):
6fce3ff
removed requirement to be from autoeval org
Browse files
app.py
CHANGED
@@ -158,19 +158,21 @@ st.experimental_set_query_params(**{"dataset": [dataset]})
|
|
158 |
dataset_df = dataframe[dataframe.dataset == dataset]
|
159 |
dataset_df = dataset_df.dropna(axis="columns", how="all")
|
160 |
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
split
|
170 |
-
"
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
|
|
174 |
|
175 |
selectable_metrics = list(filter(lambda column: column not in ("model_id", "dataset", "split", "config"), dataset_df.columns))
|
176 |
|
|
|
158 |
dataset_df = dataframe[dataframe.dataset == dataset]
|
159 |
dataset_df = dataset_df.dropna(axis="columns", how="all")
|
160 |
|
161 |
+
if "config" in dataset_df.columns:
|
162 |
+
selectable_configs = list(set(dataset_df["config"]))
|
163 |
+
config = st.sidebar.selectbox(
|
164 |
+
"Config",
|
165 |
+
selectable_configs,
|
166 |
+
)
|
167 |
+
dataset_df = dataset_df[dataset_df.config == config]
|
168 |
+
|
169 |
+
if "split" in dataset_df.columns:
|
170 |
+
selectable_splits = list(set(dataset_df["split"]))
|
171 |
+
split = st.sidebar.selectbox(
|
172 |
+
"Split",
|
173 |
+
selectable_splits,
|
174 |
+
)
|
175 |
+
dataset_df = dataset_df[dataset_df.split == split]
|
176 |
|
177 |
selectable_metrics = list(filter(lambda column: column not in ("model_id", "dataset", "split", "config"), dataset_df.columns))
|
178 |
|