Imane Momayiz commited on
Commit
9902e35
1 Parent(s): 9317c88

test commitscheduler

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -20,13 +20,12 @@ submissions_file = os.path.join(submissions_folder, f"submissions_{uuid.uuid4()}
20
  os.makedirs(submissions_folder, exist_ok=True)
21
 
22
  scheduler = CommitScheduler(
 
23
  repo_id=REPO_ID,
24
  repo_type="dataset",
25
  folder_path=submissions_folder,
26
  path_in_repo="submissions",
27
  every=1,
28
- hf_api=api,
29
- token=HF_API_KEY,
30
  )
31
 
32
  def load_data(repo_id):
 
20
  os.makedirs(submissions_folder, exist_ok=True)
21
 
22
  scheduler = CommitScheduler(
23
+ token=HF_API_KEY,
24
  repo_id=REPO_ID,
25
  repo_type="dataset",
26
  folder_path=submissions_folder,
27
  path_in_repo="submissions",
28
  every=1,
 
 
29
  )
30
 
31
  def load_data(repo_id):