Spaces:
Sleeping
Sleeping
Activate scheduler
Browse files
main.py
CHANGED
@@ -42,16 +42,16 @@ LOCAL_STORAGE_PATH.mkdir(exist_ok=True, parents=True)
|
|
42 |
EVENTS_FILE_PATH = LOCAL_STORAGE_PATH / FILE_EVENTS
|
43 |
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
|
57 |
|
|
|
42 |
EVENTS_FILE_PATH = LOCAL_STORAGE_PATH / FILE_EVENTS
|
43 |
|
44 |
|
45 |
+
scheduler = CommitScheduler(
|
46 |
+
repo_id="ml-visoft/c-reviewer",
|
47 |
+
repo_type="dataset",
|
48 |
+
folder_path=LOCAL_STORAGE_PATH,
|
49 |
+
every=100,
|
50 |
+
path_in_repo="raw_data",
|
51 |
+
token=HF_DATASET_AUTH_TOKEN,
|
52 |
+
allow_patterns=".jslines",
|
53 |
+
squash_history=False
|
54 |
+
)
|
55 |
|
56 |
|
57 |
|