ensure token is used by scheduler
Browse files
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 |
|