lyx97 commited on
Commit
1b431f4
·
1 Parent(s): dd3b997
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -113,12 +113,15 @@ def add_new_eval(
113
  csv_data.to_csv(CSV_DIR, index=False)
114
 
115
  # push newly added result
116
- add_command = f"git add {CSV_DIR}"
117
- commit_command = f"git commit -m \"add {model_name_textbox}\""
118
- push_command = "git push origin main"
119
- os.system(add_command)
120
- os.system(commit_command)
121
- os.system(push_command)
 
 
 
122
  return 0
123
 
124
  def get_baseline_df():
@@ -274,7 +277,7 @@ with block:
274
 
275
  # block.load(get_baseline_df, outputs=data_title)
276
 
277
- os.system("git config --global user.email \"liuyuanxin@stu.pku.edu.cn\"")
278
- os.system("git config --global user.name \"lyx97\"")
279
- os.system("git config --list")
280
  block.launch()
 
113
  csv_data.to_csv(CSV_DIR, index=False)
114
 
115
  # push newly added result
116
+ # add_command = f"git add {CSV_DIR}"
117
+ # commit_command = f"git commit -m \"add {model_name_textbox}\""
118
+ # push_command = "git push origin main"
119
+ # os.system(add_command)
120
+ # os.system(commit_command)
121
+ # os.system(push_command)
122
+ repo.git_add(CSV_DIR)
123
+ repo.git_commit(f"add {model_name_textbox}")
124
+ repo.push_to_hub()
125
  return 0
126
 
127
  def get_baseline_df():
 
277
 
278
  # block.load(get_baseline_df, outputs=data_title)
279
 
280
+ # os.system("git config --global user.email \"liuyuanxin@stu.pku.edu.cn\"")
281
+ # os.system("git config --global user.name \"lyx97\"")
282
+ # os.system("git config --list")
283
  block.launch()