Shaltiel commited on
Commit
ea2793e
·
1 Parent(s): cf9b0aa

Added mkdir

Browse files
Files changed (1) hide show
  1. src/backend/manage_requests.py +2 -0
src/backend/manage_requests.py CHANGED
@@ -105,6 +105,8 @@ def get_eval_requests(job_status: list, local_dir: str, hf_repo: str) -> list[Ev
105
  return eval_requests, requests_seen
106
 
107
  def get_requests_seen_json_file(local_dir):
 
 
108
  return f"{local_dir}/counters/{datetime.datetime.now().strftime('%B-%Y')}.json"
109
 
110
  def check_completed_evals(
 
105
  return eval_requests, requests_seen
106
 
107
  def get_requests_seen_json_file(local_dir):
108
+ if not os.path.isdir(f"{local_dir}/counters"):
109
+ os.mkdir(f"{local_dir}/counters")
110
  return f"{local_dir}/counters/{datetime.datetime.now().strftime('%B-%Y')}.json"
111
 
112
  def check_completed_evals(