Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ MAX_LEN_DS_CHECKS = st.secrets["MAX_LEN_DS_CHECKS"]
|
|
21 |
|
22 |
def get_ds(config):
|
23 |
ds = load_dataset(CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT, config, use_auth_token=HF_API_TOKEN)
|
24 |
-
return ds
|
25 |
|
26 |
|
27 |
def next_idx(idx: int):
|
@@ -293,7 +293,7 @@ option_clean = col_option_clean.selectbox(
|
|
293 |
|
294 |
# DATASET_DIR_PATH = os.path.join(DATASET_DIR_PATH_BEFORE_CLEAN_SELECT, option_clean)
|
295 |
# dataset_names = sorted(list(os.listdir(DATASET_DIR_PATH)))
|
296 |
-
option_ds = col_option_ds.selectbox("Select the dataset", dataset_names[option_clean])
|
297 |
|
298 |
# checks_path = os.path.join(DATASET_DIR_PATH, option_ds, "checks")
|
299 |
# checks_names = sorted(list(os.listdir(checks_path)))
|
@@ -303,7 +303,7 @@ ds_log = load_dataset(LOGS_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT, f"{option_clean
|
|
303 |
log = ds_log["train"][0]["log"]
|
304 |
get_logs_stats(raw_log=log)
|
305 |
|
306 |
-
option_check = st.selectbox("Select the operation applied to inspect", checks_names[option_clean][option_ds])
|
307 |
|
308 |
ds_check_config = f"{option_clean}_dsname_{option_ds}_operation_{option_check}"
|
309 |
|
|
|
21 |
|
22 |
def get_ds(config):
|
23 |
ds = load_dataset(CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT, config, use_auth_token=HF_API_TOKEN)
|
24 |
+
return ds["train"]
|
25 |
|
26 |
|
27 |
def next_idx(idx: int):
|
|
|
293 |
|
294 |
# DATASET_DIR_PATH = os.path.join(DATASET_DIR_PATH_BEFORE_CLEAN_SELECT, option_clean)
|
295 |
# dataset_names = sorted(list(os.listdir(DATASET_DIR_PATH)))
|
296 |
+
option_ds = col_option_ds.selectbox("Select the dataset", sorted(dataset_names[option_clean]))
|
297 |
|
298 |
# checks_path = os.path.join(DATASET_DIR_PATH, option_ds, "checks")
|
299 |
# checks_names = sorted(list(os.listdir(checks_path)))
|
|
|
303 |
log = ds_log["train"][0]["log"]
|
304 |
get_logs_stats(raw_log=log)
|
305 |
|
306 |
+
option_check = st.selectbox("Select the operation applied to inspect", sorted(checks_names[option_clean][option_ds]))
|
307 |
|
308 |
ds_check_config = f"{option_clean}_dsname_{option_ds}_operation_{option_check}"
|
309 |
|