Spaces:
Runtime error
Runtime error
pminervini
commited on
Commit
•
6a020a2
1
Parent(s):
d489aeb
update
Browse files
src/backend/manage_requests.py
CHANGED
@@ -54,12 +54,8 @@ def set_eval_request(api: HfApi, eval_request: EvalRequest, set_to_status: str,
|
|
54 |
with open(json_filepath, "w") as f:
|
55 |
f.write(json.dumps(data))
|
56 |
|
57 |
-
api.upload_file(
|
58 |
-
|
59 |
-
path_in_repo=json_filepath.replace(local_dir, ""),
|
60 |
-
repo_id=hf_repo,
|
61 |
-
repo_type="dataset",
|
62 |
-
)
|
63 |
|
64 |
|
65 |
def get_eval_requests(job_status: list, local_dir: str, hf_repo: str) -> list[EvalRequest]:
|
|
|
54 |
with open(json_filepath, "w") as f:
|
55 |
f.write(json.dumps(data))
|
56 |
|
57 |
+
api.upload_file(path_or_fileobj=json_filepath, path_in_repo=json_filepath.replace(local_dir, ""),
|
58 |
+
repo_id=hf_repo, repo_type="dataset")
|
|
|
|
|
|
|
|
|
59 |
|
60 |
|
61 |
def get_eval_requests(job_status: list, local_dir: str, hf_repo: str) -> list[EvalRequest]:
|