Spaces:
Runtime error
Runtime error
Commit
·
23e3854
1
Parent(s):
b92393c
update
Browse files- backend-cli.py +1 -1
backend-cli.py
CHANGED
|
@@ -92,7 +92,7 @@ def process_evaluation(task: Task, eval_request: EvalRequest) -> dict:
|
|
| 92 |
|
| 93 |
print('RESULTS', results)
|
| 94 |
|
| 95 |
-
dumped = json.dumps(results, indent=2)
|
| 96 |
print(dumped)
|
| 97 |
|
| 98 |
output_path = os.path.join(EVAL_RESULTS_PATH_BACKEND, *eval_request.model.split("/"), f"results_{datetime.now()}.json")
|
|
|
|
| 92 |
|
| 93 |
print('RESULTS', results)
|
| 94 |
|
| 95 |
+
dumped = json.dumps(results, indent=2, default=lambda o: '<not serializable>')
|
| 96 |
print(dumped)
|
| 97 |
|
| 98 |
output_path = os.path.join(EVAL_RESULTS_PATH_BACKEND, *eval_request.model.split("/"), f"results_{datetime.now()}.json")
|