Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
f97f2b7
1
Parent(s):
de1b836
format requets json file
Browse files
src/scripts/create_request_file.py
CHANGED
|
@@ -75,7 +75,8 @@ def main():
|
|
| 75 |
out_path = f"{out_dir}/{model_path}_eval_request_{False}_{precision}_{weight_type}.json"
|
| 76 |
|
| 77 |
with open(out_path, "w") as f:
|
| 78 |
-
f.write(json.dumps(eval_entry))
|
|
|
|
| 79 |
|
| 80 |
api.upload_file(
|
| 81 |
path_or_fileobj=out_path,
|
|
|
|
| 75 |
out_path = f"{out_dir}/{model_path}_eval_request_{False}_{precision}_{weight_type}.json"
|
| 76 |
|
| 77 |
with open(out_path, "w") as f:
|
| 78 |
+
# f.write(json.dumps(eval_entry))
|
| 79 |
+
json.dump(eval_entry, f, indent=4)
|
| 80 |
|
| 81 |
api.upload_file(
|
| 82 |
path_or_fileobj=out_path,
|
src/submission/submit.py
CHANGED
|
@@ -141,7 +141,8 @@ def add_new_eval(
|
|
| 141 |
out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{precision}_{weight_type}.json"
|
| 142 |
|
| 143 |
with open(out_path, "w") as f:
|
| 144 |
-
|
|
|
|
| 145 |
|
| 146 |
print("Uploading eval file")
|
| 147 |
API.upload_file(
|
|
|
|
| 141 |
out_path = f"{OUT_DIR}/{model_path}_eval_request_{private}_{precision}_{weight_type}.json"
|
| 142 |
|
| 143 |
with open(out_path, "w") as f:
|
| 144 |
+
json.dump(eval_entry, f, indent=4)
|
| 145 |
+
# f.write(json.dumps(eval_entry))
|
| 146 |
|
| 147 |
print("Uploading eval file")
|
| 148 |
API.upload_file(
|