tdurbor commited on
Commit
658df6d
1 Parent(s): 70c07fb

ensure token is used by scheduler

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -16,6 +16,8 @@ import time
16
  from datasets import load_dataset
17
  from huggingface_hub import CommitScheduler
18
 
 
 
19
  # Load datasets
20
  dataset = load_dataset("bgsys/background-removal-arena-test", split='train')
21
 
@@ -35,6 +37,7 @@ scheduler = CommitScheduler(
35
  repo_type="dataset",
36
  folder_path=JSON_DATASET_DIR,
37
  path_in_repo="data",
 
38
  )
39
 
40
 
 
16
  from datasets import load_dataset
17
  from huggingface_hub import CommitScheduler
18
 
19
+ token = os.getenv("HUGGINGFACE_HUB_TOKEN")
20
+
21
  # Load datasets
22
  dataset = load_dataset("bgsys/background-removal-arena-test", split='train')
23
 
 
37
  repo_type="dataset",
38
  folder_path=JSON_DATASET_DIR,
39
  path_in_repo="data",
40
+ token=token
41
  )
42
 
43