eduagarcia commited on
Commit
caef9bd
1 Parent(s): c0fa950

diferentiate leaderboard upload from script upload

Browse files
src/submission/submit.py CHANGED
@@ -27,6 +27,7 @@ def add_new_eval(
27
  private: bool,
28
  weight_type: str,
29
  model_type: str,
 
30
  ):
31
  global REQUESTED_MODELS
32
  global USERS_TO_SUBMISSION_DATES
@@ -117,6 +118,7 @@ def add_new_eval(
117
  "status": "PENDING",
118
  "submitted_time": current_time,
119
  "model_type": model_type,
 
120
  "job_id": -1,
121
  "job_start_time": None,
122
  }
 
27
  private: bool,
28
  weight_type: str,
29
  model_type: str,
30
+ source="leaderboard"
31
  ):
32
  global REQUESTED_MODELS
33
  global USERS_TO_SUBMISSION_DATES
 
118
  "status": "PENDING",
119
  "submitted_time": current_time,
120
  "model_type": model_type,
121
+ "source": source,
122
  "job_id": -1,
123
  "job_start_time": None,
124
  }
upload_initial_queue.py CHANGED
@@ -23,7 +23,8 @@ with open('initial_queue.jsonl', 'r', encoding='utf-8') as outfile:
23
  precision=data["precision"],
24
  private=False,
25
  weight_type=data["weight_type"],
26
- model_type=data["model_type"]
 
27
  )
28
  print(message)
29
 
 
23
  precision=data["precision"],
24
  private=False,
25
  weight_type=data["weight_type"],
26
+ model_type=data["model_type"],
27
+ source="script"
28
  )
29
  print(message)
30