derek-thomas HF staff commited on
Commit
c533979
1 Parent(s): 2216ba6

Trying without hf_token

Browse files
Files changed (1) hide show
  1. src/readme_update.py +1 -2
src/readme_update.py CHANGED
@@ -20,7 +20,7 @@ def update_dataset_readme(dataset_name: str, subreddit: str, new_rows: int) -> N
20
  api = HfApi()
21
 
22
  # Download README file
23
- readme_path = api.hf_hub_download(repo_id=dataset_name, repo_type="dataset", filename="README.md", token=hf_token)
24
 
25
  # Read it
26
  with open(readme_path, "r") as file:
@@ -35,7 +35,6 @@ def update_dataset_readme(dataset_name: str, subreddit: str, new_rows: int) -> N
35
  path_in_repo="README.md",
36
  repo_id=dataset_name,
37
  repo_type="dataset",
38
- token=hf_token,
39
  commit_message=f'Pushing {new_rows} new rows'
40
  )
41
 
 
20
  api = HfApi()
21
 
22
  # Download README file
23
+ readme_path = api.hf_hub_download(repo_id=dataset_name, repo_type="dataset", filename="README.md")
24
 
25
  # Read it
26
  with open(readme_path, "r") as file:
 
35
  path_in_repo="README.md",
36
  repo_id=dataset_name,
37
  repo_type="dataset",
 
38
  commit_message=f'Pushing {new_rows} new rows'
39
  )
40