XufengDuan commited on
Commit
026cadd
·
1 Parent(s): b46d354

update scripts

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. 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=True, # 根据需要设定是否需要检查
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
- _response = ""
214
  exceptions.append(i)
215
- break
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