Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
pminervini
commited on
Commit
•
c8ae03b
1
Parent(s):
90dff75
update
Browse files- app.py +1 -1
- backend-cli.py +2 -0
app.py
CHANGED
@@ -365,7 +365,7 @@ def launch_backend():
|
|
365 |
_ = subprocess.run(["python", "backend-cli.py"])
|
366 |
|
367 |
|
368 |
-
scheduler.add_job(launch_backend, "interval", seconds=120)
|
369 |
|
370 |
scheduler.start()
|
371 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
365 |
_ = subprocess.run(["python", "backend-cli.py"])
|
366 |
|
367 |
|
368 |
+
# scheduler.add_job(launch_backend, "interval", seconds=120)
|
369 |
|
370 |
scheduler.start()
|
371 |
demo.queue(default_concurrency_limit=40).launch()
|
backend-cli.py
CHANGED
@@ -105,6 +105,7 @@ def process_finished_requests() -> bool:
|
|
105 |
|
106 |
for eval_request in eval_requests:
|
107 |
result_name: str = request_to_result_name(eval_request)
|
|
|
108 |
|
109 |
# Check the corresponding result
|
110 |
eval_result: EvalResult = result_name_to_result[result_name]
|
@@ -114,6 +115,7 @@ 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 |
|
|
|
105 |
|
106 |
for eval_request in eval_requests:
|
107 |
result_name: str = request_to_result_name(eval_request)
|
108 |
+
print(result_name, result_name in result_name_to_result)
|
109 |
|
110 |
# Check the corresponding result
|
111 |
eval_result: EvalResult = result_name_to_result[result_name]
|
|
|
115 |
task_name = task.benchmark
|
116 |
|
117 |
if task_name not in eval_result.results:
|
118 |
+
print(task_name)
|
119 |
results = process_evaluation(task, eval_request)
|
120 |
return True
|
121 |
|