SaulLu commited on
Commit
e3a2bdc
·
1 Parent(s): dc6ec60

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,6 +9,7 @@ from datasets import load_dataset, get_dataset_config_names
9
 
10
  CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT = os.getenv("CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT")
11
  LOGS_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT = os.getenv("LOGS_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT")
 
12
 
13
  OPERATION_TYPES = [
14
  "Applied filter",
@@ -19,7 +20,7 @@ MAX_LEN_DS_CHECKS = os.getenv("MAX_LEN_DS_CHECKS")
19
 
20
 
21
  def get_ds(config):
22
- ds = load_dataset(CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT, config, use_auth_token=True)
23
  return ds
24
 
25
 
 
9
 
10
  CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT = os.getenv("CHECK_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT")
11
  LOGS_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT = os.getenv("LOGS_DATASET_DIR_PATH_BEFORE_CLEAN_SELECT")
12
+ HF_API_TOKEN = os.getenv("HF_API_TOKEN")
13
 
14
  OPERATION_TYPES = [
15
  "Applied filter",
 
20
 
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