Spaces:
Sleeping
Sleeping
Commit
·
026cadd
1
Parent(s):
b46d354
update scripts
Browse files- app.py +1 -1
- src/backend/model_operations.py +2 -2
app.py
CHANGED
@@ -69,7 +69,7 @@ def process_pending_evals():
|
|
69 |
batch_size=1,
|
70 |
device=envs.DEVICE,
|
71 |
no_cache=True,
|
72 |
-
need_check=
|
73 |
write_results=False # 根据需要设定是否写入结果
|
74 |
)
|
75 |
print(f"Finished evaluation for model: {eval_request['model']}")
|
|
|
69 |
batch_size=1,
|
70 |
device=envs.DEVICE,
|
71 |
no_cache=True,
|
72 |
+
need_check=False, # 根据需要设定是否需要检查
|
73 |
write_results=False # 根据需要设定是否写入结果
|
74 |
)
|
75 |
print(f"Finished evaluation for model: {eval_request['model']}")
|
src/backend/model_operations.py
CHANGED
@@ -210,9 +210,9 @@ class SummaryGenerator:
|
|
210 |
time.sleep(wait_time)
|
211 |
else:
|
212 |
print(f"Error at index {i}: {e}")
|
213 |
-
|
214 |
exceptions.append(i)
|
215 |
-
|
216 |
if i == 5:
|
217 |
print(_response)
|
218 |
|
|
|
210 |
time.sleep(wait_time)
|
211 |
else:
|
212 |
print(f"Error at index {i}: {e}")
|
213 |
+
wait_time = 60
|
214 |
exceptions.append(i)
|
215 |
+
time.sleep(wait_time)
|
216 |
if i == 5:
|
217 |
print(_response)
|
218 |
|