Weyaxi commited on
Commit
f60b616
1 Parent(s): 95b7c61

maybe this will solve that readme text error

Browse files
Files changed (1) hide show
  1. functions.py +5 -0
functions.py CHANGED
@@ -147,6 +147,11 @@ def get_edited_yaml_readme(repo, token: str | None):
147
 
148
 
149
  def commit(repo, pr_number=None, message="Adding Evaluation Results", oauth_token: gr.OAuthToken | None = None): # specify pr number if you want to edit it, don't if you don't want
 
 
 
 
 
150
  if oauth_token is None:
151
  gr.Warning("You are not logged in; therefore, the leaderboard-pr-bot will open the pull request instead of you. Click on 'Sign in with Huggingface' to log in.")
152
  token = BOT_HF_TOKEN
 
147
 
148
 
149
  def commit(repo, pr_number=None, message="Adding Evaluation Results", oauth_token: gr.OAuthToken | None = None): # specify pr number if you want to edit it, don't if you don't want
150
+ global df
151
+ data = get_json_format_data()
152
+ finished_models = get_datas(data)
153
+ df = pd.DataFrame(finished_models)
154
+
155
  if oauth_token is None:
156
  gr.Warning("You are not logged in; therefore, the leaderboard-pr-bot will open the pull request instead of you. Click on 'Sign in with Huggingface' to log in.")
157
  token = BOT_HF_TOKEN