Update app.py
Browse files
app.py
CHANGED
|
@@ -103,6 +103,10 @@ def push_results_to_private_repo(uid: str):
|
|
| 103 |
path_in_repo=f"results/users/{uid}.jsonl",
|
| 104 |
path_or_fileobj=user_file
|
| 105 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
]
|
| 107 |
_hf_api.create_commit(
|
| 108 |
repo_id=HF_RESULTS_REPO,
|
|
@@ -702,7 +706,7 @@ if __name__ == "__main__":
|
|
| 702 |
repo_id=HF_RESULTS_REPO,
|
| 703 |
repo_type="dataset",
|
| 704 |
local_dir=".",
|
| 705 |
-
allow_patterns="data/*",
|
| 706 |
token=HF_TOKEN
|
| 707 |
)
|
| 708 |
except Exception as e:
|
|
|
|
| 103 |
path_in_repo=f"results/users/{uid}.jsonl",
|
| 104 |
path_or_fileobj=user_file
|
| 105 |
),
|
| 106 |
+
CommitOperationAdd(
|
| 107 |
+
path_in_repo="results/progress.json",
|
| 108 |
+
path_or_fileobj=PROGRESS_PATH
|
| 109 |
+
),
|
| 110 |
]
|
| 111 |
_hf_api.create_commit(
|
| 112 |
repo_id=HF_RESULTS_REPO,
|
|
|
|
| 706 |
repo_id=HF_RESULTS_REPO,
|
| 707 |
repo_type="dataset",
|
| 708 |
local_dir=".",
|
| 709 |
+
allow_patterns=["data/*", "results/*"],
|
| 710 |
token=HF_TOKEN
|
| 711 |
)
|
| 712 |
except Exception as e:
|