Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
pminervini
commited on
Commit
•
97f2393
1
Parent(s):
4876a51
update
Browse files- backend-cli.py +3 -3
backend-cli.py
CHANGED
@@ -267,7 +267,7 @@ if __name__ == "__main__":
|
|
267 |
hard_task_lst = None
|
268 |
if socket.gethostname() in {'hamburg', 'neuromancer'} or os.path.isdir("/home/pminervi"):
|
269 |
wait = False
|
270 |
-
hard_task_lst = ['nq', 'trivia', 'tqa']
|
271 |
|
272 |
if wait:
|
273 |
time.sleep(60 * random.randint(5, 10))
|
@@ -280,9 +280,9 @@ if __name__ == "__main__":
|
|
280 |
|
281 |
if res is False:
|
282 |
if random.randint(0, 5) == 0:
|
283 |
-
res = maybe_refresh_results(
|
284 |
else:
|
285 |
-
res = process_finished_requests(
|
286 |
|
287 |
if res is False:
|
288 |
if random.randint(0, 5) == 0:
|
|
|
267 |
hard_task_lst = None
|
268 |
if socket.gethostname() in {'hamburg', 'neuromancer'} or os.path.isdir("/home/pminervi"):
|
269 |
wait = False
|
270 |
+
hard_task_lst = None # ['nq', 'trivia', 'tqa']
|
271 |
|
272 |
if wait:
|
273 |
time.sleep(60 * random.randint(5, 10))
|
|
|
280 |
|
281 |
if res is False:
|
282 |
if random.randint(0, 5) == 0:
|
283 |
+
res = maybe_refresh_results(500, hard_task_lst=hard_task_lst)
|
284 |
else:
|
285 |
+
res = process_finished_requests(500, hard_task_lst=hard_task_lst)
|
286 |
|
287 |
if res is False:
|
288 |
if random.randint(0, 5) == 0:
|