lewtun HF staff commited on
Commit
573e197
1 Parent(s): 8a21997

Add comment

Browse files
Files changed (1) hide show
  1. run_evaluation_jobs.py +1 -0
run_evaluation_jobs.py CHANGED
@@ -38,6 +38,7 @@ def main():
38
  token=HF_TOKEN,
39
  domain=AUTOTRAIN_BACKEND_API,
40
  ).json()
 
41
  if project_info["status"] == 3 and project_info["training_status"] == "not_started":
42
  train_job_resp = http_post(
43
  path=f"/projects/{project_id}/start_training",
 
38
  token=HF_TOKEN,
39
  domain=AUTOTRAIN_BACKEND_API,
40
  ).json()
41
+ # Only start evaluation for projects with completed data processing (status=3)
42
  if project_info["status"] == 3 and project_info["training_status"] == "not_started":
43
  train_job_resp = http_post(
44
  path=f"/projects/{project_id}/start_training",