eduagarcia commited on
Commit
ddc78ea
1 Parent(s): 7e0c0f1

Update src/submission/submit.py

Browse files
Files changed (1) hide show
  1. src/submission/submit.py +1 -0
src/submission/submit.py CHANGED
@@ -152,6 +152,7 @@ def add_new_eval(
152
  rev_name = revision
153
  if len(rev_name) > 12:
154
  rev_name = rev_name[:7]
 
155
  out_path = f"{OUT_DIR}/{model_path}_eval_request_{rev_name}_{private}_{precision}_{weight_type}.json"
156
 
157
  with open(out_path, "w", encoding="utf-8") as f:
 
152
  rev_name = revision
153
  if len(rev_name) > 12:
154
  rev_name = rev_name[:7]
155
+ rev_name = rev_name.replace('/', '-').replace('\\', '-')
156
  out_path = f"{OUT_DIR}/{model_path}_eval_request_{rev_name}_{private}_{precision}_{weight_type}.json"
157
 
158
  with open(out_path, "w", encoding="utf-8") as f: