psyche commited on
Commit
bc679cd
·
verified ·
1 Parent(s): ed9bdc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -14,6 +14,7 @@ from pathlib import Path
14
 
15
  from huggingface_hub import CommitScheduler
16
 
 
17
 
18
  JSON_DATASET_DIR = Path("json_dataset")
19
  JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
@@ -25,6 +26,7 @@ scheduler = CommitScheduler(
25
  repo_type="dataset",
26
  folder_path=JSON_DATASET_DIR,
27
  path_in_repo="data",
 
28
  )
29
 
30
  def save_json(role: str, content: str) -> None:
 
14
 
15
  from huggingface_hub import CommitScheduler
16
 
17
+ HF_UPLOAD = os.environ.get("HF_UPLOAD")
18
 
19
  JSON_DATASET_DIR = Path("json_dataset")
20
  JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
 
26
  repo_type="dataset",
27
  folder_path=JSON_DATASET_DIR,
28
  path_in_repo="data",
29
+ token=HF_UPLOAD
30
  )
31
 
32
  def save_json(role: str, content: str) -> None: