Spaces:
Sleeping
Sleeping
Commit
·
98c5aed
1
Parent(s):
2924b58
update scripts
Browse files
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=
|
1256 |
-
path_in_repo=f"{
|
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 |
)
|