Spaces:
Running
Running
update
Browse files
app.py
CHANGED
@@ -114,8 +114,11 @@ def add_new_eval(
|
|
114 |
|
115 |
# push newly added result
|
116 |
print(repo.git_remote_url())
|
|
|
117 |
repo.git_add(CSV_DIR)
|
|
|
118 |
repo.git_commit(f"add {model_name_textbox}")
|
|
|
119 |
repo.push_to_hub()
|
120 |
return 0
|
121 |
|
@@ -272,7 +275,7 @@ with block:
|
|
272 |
|
273 |
# block.load(get_baseline_df, outputs=data_title)
|
274 |
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
block.launch()
|
|
|
114 |
|
115 |
# push newly added result
|
116 |
print(repo.git_remote_url())
|
117 |
+
print("git add...")
|
118 |
repo.git_add(CSV_DIR)
|
119 |
+
print("git commit...")
|
120 |
repo.git_commit(f"add {model_name_textbox}")
|
121 |
+
print("git push...")
|
122 |
repo.push_to_hub()
|
123 |
return 0
|
124 |
|
|
|
275 |
|
276 |
# block.load(get_baseline_df, outputs=data_title)
|
277 |
|
278 |
+
os.system("git config --global user.email \"liuyuanxin@stu.pku.edu.cn\"")
|
279 |
+
os.system("git config --global user.name \"lyx97\"")
|
280 |
+
os.system("git config --list")
|
281 |
block.launch()
|