Spaces:
Running
Running
add push function to app.py
Browse files
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 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
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():
|