Weyaxi commited on
Commit
35028de
·
1 Parent(s): 2e03edb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -49,7 +49,7 @@ def upload_datasets(dfs):
49
  CommitOperationAdd(path_in_repo=f"{time}/datasets_df.csv", path_or_fileobj=(dfs[1].to_csv()).encode()),
50
  CommitOperationAdd(path_in_repo=f"{time}/spaces_df.csv", path_or_fileobj=(dfs[2].to_csv()).encode())]
51
 
52
- return (create_commit(repo_id="PulsarAI/huggingface-leaderboard-history", operations=operations, commit_message=f"Uploading history of {time}", repo_type="dataset", token=HF_TOKEN))
53
 
54
 
55
  def get_most(df_for_most_function):
@@ -268,8 +268,8 @@ def fetch_data_from_url(url):
268
  print(f"Failed to fetch data from URL: {url}")
269
  return []
270
 
271
- user_names_url = "https://huggingface.co/datasets/PulsarAI/user-orgs-huggingface-leaderboard/raw/main/user_names.txt"
272
- org_names_url = "https://huggingface.co/datasets/PulsarAI/user-orgs-huggingface-leaderboard/raw/main/org_names.txt"
273
 
274
  user_names_in_list = fetch_data_from_url(user_names_url)
275
  org_names_in_list = fetch_data_from_url(org_names_url)
 
49
  CommitOperationAdd(path_in_repo=f"{time}/datasets_df.csv", path_or_fileobj=(dfs[1].to_csv()).encode()),
50
  CommitOperationAdd(path_in_repo=f"{time}/spaces_df.csv", path_or_fileobj=(dfs[2].to_csv()).encode())]
51
 
52
+ return (create_commit(repo_id="Weyaxi/huggingface-leaderboard-history", operations=operations, commit_message=f"Uploading history of {time}", repo_type="dataset", token=HF_TOKEN))
53
 
54
 
55
  def get_most(df_for_most_function):
 
268
  print(f"Failed to fetch data from URL: {url}")
269
  return []
270
 
271
+ user_names_url = "https://huggingface.co/datasets/Weyaxi/user-orgs-huggingface-leaderboard/raw/main/user_names.txt"
272
+ org_names_url = "https://huggingface.co/datasets/Weyaxi/user-orgs-huggingface-leaderboard/raw/main/org_names.txt"
273
 
274
  user_names_in_list = fetch_data_from_url(user_names_url)
275
  org_names_in_list = fetch_data_from_url(org_names_url)