djstrong commited on
Commit
b5cbc31
·
1 Parent(s): ed33da8

disable requests

Browse files
Files changed (1) hide show
  1. src/backend/manage_requests.py +7 -7
src/backend/manage_requests.py CHANGED
@@ -75,13 +75,13 @@ def get_eval_requests(job_status: list, local_dir: str, hf_repo: str) -> list[Ev
75
  json_files = glob.glob(f"{local_dir}/**/*.json", recursive=True)
76
 
77
  eval_requests = []
78
- for json_filepath in json_files:
79
- with open(json_filepath) as fp:
80
- data = json.load(fp)
81
- if data["status"] in job_status:
82
- data["json_filepath"] = json_filepath
83
- eval_request = EvalRequest(**data)
84
- eval_requests.append(eval_request)
85
 
86
  return eval_requests
87
 
 
75
  json_files = glob.glob(f"{local_dir}/**/*.json", recursive=True)
76
 
77
  eval_requests = []
78
+ # for json_filepath in json_files:
79
+ # with open(json_filepath) as fp:
80
+ # data = json.load(fp)
81
+ # if data["status"] in job_status:
82
+ # data["json_filepath"] = json_filepath
83
+ # eval_request = EvalRequest(**data)
84
+ # eval_requests.append(eval_request)
85
 
86
  return eval_requests
87