derek-thomas HF staff commited on
Commit
3e1e25d
1 Parent(s): 6a95e74

Updating username to not be hardcoded

Browse files
Files changed (1) hide show
  1. utilities/readme_update.py +2 -1
utilities/readme_update.py CHANGED
@@ -8,6 +8,7 @@ from huggingface_hub import HfApi, Repository
8
 
9
  frequency = os.environ.get("FREQUENCY", '').lower()
10
  GENERATED_BELOW_MARKER = "--- Generated Part of README Below ---"
 
11
  hf_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
12
  local_repo_path = "./readme_repo"
13
 
@@ -69,7 +70,7 @@ The goal is to have an open dataset of [r/{subreddit}](https://www.reddit.com/r/
69
  There is a limit of 1000 in an API call and limited search functionality, so this is run {frequency} to get new submissions.
70
 
71
  ## Creation Details
72
- This dataset was created by [derek-thomas/dataset-creator-reddit-{subreddit}](https://huggingface.co/spaces/derek-thomas/dataset-creator-reddit-{subreddit})
73
 
74
  ## Update Frequency
75
  The dataset is updated {frequency} with the most recent update being `{latest_hour_str}` where we added **{new_rows} new rows**.
 
8
 
9
  frequency = os.environ.get("FREQUENCY", '').lower()
10
  GENERATED_BELOW_MARKER = "--- Generated Part of README Below ---"
11
+ username = os.environ["USERNAME"]
12
  hf_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
13
  local_repo_path = "./readme_repo"
14
 
 
70
  There is a limit of 1000 in an API call and limited search functionality, so this is run {frequency} to get new submissions.
71
 
72
  ## Creation Details
73
+ This dataset was created by [{username}/dataset-creator-reddit-{subreddit}](https://huggingface.co/spaces/{username}/dataset-creator-reddit-{subreddit})
74
 
75
  ## Update Frequency
76
  The dataset is updated {frequency} with the most recent update being `{latest_hour_str}` where we added **{new_rows} new rows**.