djstrong commited on
Commit
92530b5
1 Parent(s): 1be4fc9

remove trust remote code

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -0
src/leaderboard/read_evals.py CHANGED
@@ -56,6 +56,8 @@ class EvalResult:
56
  org_and_model=org_and_model.replace("models/hf_v7_e2", "APT3-1B-Instruct-e2")
57
 
58
  org_and_model = re.sub(r"^pretrained=", "", org_and_model)
 
 
59
  org_and_model = org_and_model.split("/", 1)
60
 
61
  if len(org_and_model) == 1:
 
56
  org_and_model=org_and_model.replace("models/hf_v7_e2", "APT3-1B-Instruct-e2")
57
 
58
  org_and_model = re.sub(r"^pretrained=", "", org_and_model)
59
+ org_and_model = org_and_model.replace(",trust_remote_code=True", "")
60
+
61
  org_and_model = org_and_model.split("/", 1)
62
 
63
  if len(org_and_model) == 1: