push votes to different dataset
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
|
|
31 |
|
32 |
# Initialize CommitScheduler for Hugging Face
|
33 |
scheduler = CommitScheduler(
|
34 |
-
repo_id="bgsys/
|
35 |
repo_type="dataset",
|
36 |
folder_path=JSON_DATASET_DIR,
|
37 |
path_in_repo="data",
|
@@ -276,8 +276,6 @@ def dump_database_to_json():
|
|
276 |
"model_b": vote.model_b,
|
277 |
"winner": vote.winner,
|
278 |
"user_id": vote.user_id,
|
279 |
-
"fpath_a": vote.fpath_a,
|
280 |
-
"fpath_b": vote.fpath_b,
|
281 |
"timestamp": vote.timestamp.isoformat()
|
282 |
}
|
283 |
for vote in votes
|
|
|
31 |
|
32 |
# Initialize CommitScheduler for Hugging Face
|
33 |
scheduler = CommitScheduler(
|
34 |
+
repo_id="bgsys/votes_datasets_test2",
|
35 |
repo_type="dataset",
|
36 |
folder_path=JSON_DATASET_DIR,
|
37 |
path_in_repo="data",
|
|
|
276 |
"model_b": vote.model_b,
|
277 |
"winner": vote.winner,
|
278 |
"user_id": vote.user_id,
|
|
|
|
|
279 |
"timestamp": vote.timestamp.isoformat()
|
280 |
}
|
281 |
for vote in votes
|