davanstrien HF staff commited on
Commit
1a058f6
1 Parent(s): cc9c5eb

Update CommitScheduler instantiation

Browse files
Files changed (1) hide show
  1. main.py +9 -9
main.py CHANGED
@@ -23,15 +23,15 @@ VOTES_FILE = "votes/votes.jsonl"
23
  HF_TOKEN = os.getenv("HF_TOKEN")
24
  hf_api = HfApi(token=HF_TOKEN)
25
 
26
- # scheduler = CommitScheduler(
27
- # repo_id="davanstrien/summary-ratings",
28
- # repo_type="dataset",
29
- # folder_path="votes",
30
- # path_in_repo="data",
31
- # every=1,
32
- # token=HF_TOKEN,
33
- # hf_api=hf_api,
34
- # )
35
 
36
 
37
  @asynccontextmanager
 
23
  HF_TOKEN = os.getenv("HF_TOKEN")
24
  hf_api = HfApi(token=HF_TOKEN)
25
 
26
+ scheduler = CommitScheduler(
27
+ repo_id="davanstrien/summary-ratings",
28
+ repo_type="dataset",
29
+ folder_path="votes",
30
+ path_in_repo="data",
31
+ every=1,
32
+ token=HF_TOKEN,
33
+ hf_api=hf_api,
34
+ )
35
 
36
 
37
  @asynccontextmanager