Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,13 @@ def save_leaderboard(data):
|
|
30 |
with open(leaderboard_path, "w", encoding="utf-8") as f:
|
31 |
json.dump(data, f, ensure_ascii=False, indent=2)
|
32 |
|
|
|
|
|
|
|
|
|
33 |
repo.push_to_hub(commit_message="Update leaderboard")
|
34 |
|
|
|
35 |
# --- Submit model and update leaderboard ---
|
36 |
def submit_model(model_name):
|
37 |
leaderboard = load_leaderboard()
|
|
|
30 |
with open(leaderboard_path, "w", encoding="utf-8") as f:
|
31 |
json.dump(data, f, ensure_ascii=False, indent=2)
|
32 |
|
33 |
+
# 👇 Set Git config
|
34 |
+
os.system('git config --global user.email "mehrdadsoleimany48@gmail.com"')
|
35 |
+
os.system('git config --global user.name "Mehrdad-S"')
|
36 |
+
|
37 |
repo.push_to_hub(commit_message="Update leaderboard")
|
38 |
|
39 |
+
|
40 |
# --- Submit model and update leaderboard ---
|
41 |
def submit_model(model_name):
|
42 |
leaderboard = load_leaderboard()
|