Spaces:
Sleeping
Sleeping
Clémentine
commited on
Commit
·
6e99f98
1
Parent(s):
e8c97b8
fix
Browse files- utils/jobs.py +1 -1
utils/jobs.py
CHANGED
|
@@ -102,7 +102,7 @@ def run_single_job(model: str, provider: str, tasks: str) -> Optional[str]:
|
|
| 102 |
with globals.results_lock:
|
| 103 |
# Move current score to previous score if it exists (relaunching)
|
| 104 |
previous_score = None
|
| 105 |
-
if key in globals.job_results and globals.job_results[key].get("current_score"):
|
| 106 |
previous_score = globals.job_results[key]["current_score"]
|
| 107 |
|
| 108 |
globals.job_results[key] = {
|
|
|
|
| 102 |
with globals.results_lock:
|
| 103 |
# Move current score to previous score if it exists (relaunching)
|
| 104 |
previous_score = None
|
| 105 |
+
if key in globals.job_results and globals.job_results[key].get("current_score", None) is not None:
|
| 106 |
previous_score = globals.job_results[key]["current_score"]
|
| 107 |
|
| 108 |
globals.job_results[key] = {
|