Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
hanhainebula
commited on
Commit
•
9e747ff
1
Parent(s):
8fcdb2a
Add indent for metadata json file
Browse files- src/utils.py +1 -1
src/utils.py
CHANGED
@@ -262,7 +262,7 @@ def submit_results(filepath: str, model: str, model_url: str, reranker: str, rer
|
|
262 |
"timestamp": f"{timestamp_config}"
|
263 |
}
|
264 |
with open(input_folder_path / output_config_fn, "w") as f:
|
265 |
-
json.dump(output_config, f, ensure_ascii=False)
|
266 |
API.upload_file(
|
267 |
path_or_fileobj=input_folder_path / output_config_fn,
|
268 |
path_in_repo=f"{version}/{model}/{reranker}/{output_config_fn}",
|
|
|
262 |
"timestamp": f"{timestamp_config}"
|
263 |
}
|
264 |
with open(input_folder_path / output_config_fn, "w") as f:
|
265 |
+
json.dump(output_config, f, indent=4, ensure_ascii=False)
|
266 |
API.upload_file(
|
267 |
path_or_fileobj=input_folder_path / output_config_fn,
|
268 |
path_in_repo=f"{version}/{model}/{reranker}/{output_config_fn}",
|