lyx97 commited on
Commit
f4f926c
·
1 Parent(s): 9af5e66

add push function to app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -104,14 +104,12 @@ def add_new_eval(
104
  csv_data.to_csv(CSV_DIR, index=False)
105
 
106
  # push newly added result
107
- # add_command = f"git add {CSV_DIR}"
108
- # commit_command = f"git commit -m \"add {model_name_textbox}\""
109
- # push_command = "git push origin main"
110
- # os.system(add_command)
111
- # os.system(commit_command)
112
- # os.system(push_command)
113
- os.system('git status')
114
- os.system('git remote -v')
115
  return 0
116
 
117
  def get_baseline_df():
 
104
  csv_data.to_csv(CSV_DIR, index=False)
105
 
106
  # push newly added result
107
+ add_command = f"git add {CSV_DIR}"
108
+ commit_command = f"git commit -m \"add {model_name_textbox}\""
109
+ push_command = "git push origin main"
110
+ os.system(add_command)
111
+ os.system(commit_command)
112
+ os.system(push_command)
 
 
113
  return 0
114
 
115
  def get_baseline_df():