XufengDuan commited on
Commit
98c5aed
·
1 Parent(s): 2924b58

update scripts

Browse files
Files changed (1) hide show
  1. src/backend/model_operations.py +3 -3
src/backend/model_operations.py CHANGED
@@ -1250,10 +1250,10 @@ class EvaluationModel:
1250
  fpath = Path(save_path)
1251
  fpath.parent.mkdir(parents=True, exist_ok=True)
1252
  self.llm_df.to_csv(fpath)
1253
-
1254
  envs.API.upload_file(
1255
- path_or_fileobj=f"./generation_results/{self.model}_coding.csv",
1256
- path_in_repo=f"{self.model}_coding.csv",
1257
  repo_id=envs.RESULTS_REPO,
1258
  repo_type="dataset",
1259
  )
 
1250
  fpath = Path(save_path)
1251
  fpath.parent.mkdir(parents=True, exist_ok=True)
1252
  self.llm_df.to_csv(fpath)
1253
+
1254
  envs.API.upload_file(
1255
+ path_or_fileobj= save_path,#./generation_results/meta-llama/Llama-2-13b-chat-hf_coding.csv
1256
+ path_in_repo=f"{save_path.replace('generation_results/','')}_coding.csv",#
1257
  repo_id=envs.RESULTS_REPO,
1258
  repo_type="dataset",
1259
  )