rootacess commited on
Commit
1a65b20
·
1 Parent(s): 7817c3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,9 +2,10 @@ import gradio as gr
2
  from huggingface_hub import hf_hub_download
3
  import json
4
  import urllib
 
5
 
6
  filepath = hf_hub_download(repo_id="bigcode/commits-username-to-repo", filename="username_to_repo.json",
7
- repo_type="dataset", token="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")
8
  with open(filepath, 'r') as f:
9
  username_to_repo = json.load(f)
10
 
 
2
  from huggingface_hub import hf_hub_download
3
  import json
4
  import urllib
5
+ import os
6
 
7
  filepath = hf_hub_download(repo_id="bigcode/commits-username-to-repo", filename="username_to_repo.json",
8
+ repo_type="dataset", token=os.environ.get("api_token"))
9
  with open(filepath, 'r') as f:
10
  username_to_repo = json.load(f)
11