Spaces:
Restarting
on
CPU Upgrade
Restarting
on
CPU Upgrade
pminervini
commited on
Commit
•
5a2355a
1
Parent(s):
c0e342c
update
Browse files- backend-cli.py +9 -0
backend-cli.py
CHANGED
@@ -114,7 +114,16 @@ def process_finished_requests() -> bool:
|
|
114 |
task_name = task.benchmark
|
115 |
|
116 |
if task_name not in eval_result.results:
|
|
|
|
|
|
|
|
|
|
|
117 |
results = process_evaluation(task, eval_request)
|
|
|
|
|
|
|
|
|
118 |
return True
|
119 |
|
120 |
return False
|
|
|
114 |
task_name = task.benchmark
|
115 |
|
116 |
if task_name not in eval_result.results:
|
117 |
+
eval_request: EvalRequest = result_name_to_request[result_name]
|
118 |
+
|
119 |
+
set_eval_request(api=API, eval_request=eval_request, set_to_status=RUNNING_STATUS, hf_repo=QUEUE_REPO,
|
120 |
+
local_dir=EVAL_REQUESTS_PATH_BACKEND)
|
121 |
+
|
122 |
results = process_evaluation(task, eval_request)
|
123 |
+
|
124 |
+
set_eval_request(api=API, eval_request=eval_request, set_to_status=FINISHED_STATUS, hf_repo=QUEUE_REPO,
|
125 |
+
local_dir=EVAL_REQUESTS_PATH_BACKEND)
|
126 |
+
|
127 |
return True
|
128 |
|
129 |
return False
|