Clémentine commited on
Commit
b4f48ba
1 Parent(s): 2acf509

rm dynamic file reference

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +0 -22
src/submission/submit.py CHANGED
@@ -2,8 +2,6 @@ import json
2
  import os
3
  from datetime import datetime, timezone
4
 
5
- from huggingface_hub import snapshot_download
6
-
7
  from src.display.formatting import styled_error, styled_message, styled_warning
8
  from src.envs import (
9
  API,
@@ -163,26 +161,6 @@ def add_new_eval(
163
  commit_message=f"Add {model} to eval queue",
164
  )
165
 
166
- # We want to grab the latest version of the submission file to not accidentally overwrite it
167
- snapshot_download(
168
- repo_id=DYNAMIC_INFO_REPO, local_dir=DYNAMIC_INFO_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
169
- )
170
-
171
- with open(DYNAMIC_INFO_FILE_PATH) as f:
172
- all_supplementary_info = json.load(f)
173
-
174
- all_supplementary_info[model] = supplementary_info
175
- with open(DYNAMIC_INFO_FILE_PATH, "w") as f:
176
- json.dump(all_supplementary_info, f, indent=2)
177
-
178
- API.upload_file(
179
- path_or_fileobj=DYNAMIC_INFO_FILE_PATH,
180
- path_in_repo=DYNAMIC_INFO_FILE_PATH.split("/")[-1],
181
- repo_id=DYNAMIC_INFO_REPO,
182
- repo_type="dataset",
183
- commit_message=f"Add {model} to dynamic info queue",
184
- )
185
-
186
  # Remove the local file
187
  os.remove(out_path)
188
 
 
2
  import os
3
  from datetime import datetime, timezone
4
 
 
 
5
  from src.display.formatting import styled_error, styled_message, styled_warning
6
  from src.envs import (
7
  API,
 
161
  commit_message=f"Add {model} to eval queue",
162
  )
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  # Remove the local file
165
  os.remove(out_path)
166