sanchit-gandhi commited on
Commit
923754b
·
1 Parent(s): 053d8af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -17,14 +17,13 @@ SUBMISSION_URL = os.path.join(
17
  )
18
 
19
  # grab these repos using the token provided
20
- # TODO: add token for gated access
21
- # HF_TOKEN = os.environ.get("HF_TOKEN")
22
 
23
  reference_repo = Repository(
24
- local_dir="references", clone_from=REFERENCE_URL, # use_auth_token=HF_TOKEN
25
  )
26
  submission_repo = Repository(
27
- local_dir="submissions", clone_from=SUBMISSION_URL, # use_auth_token=HF_TOKEN
28
  )
29
  submission_repo.git_pull()
30
 
 
17
  )
18
 
19
  # grab these repos using the token provided
20
+ HF_TOKEN = os.environ.get("HF_TOKEN")
 
21
 
22
  reference_repo = Repository(
23
+ local_dir="references", clone_from=REFERENCE_URL, use_auth_token=HF_TOKEN
24
  )
25
  submission_repo = Repository(
26
+ local_dir="submissions", clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN
27
  )
28
  submission_repo.git_pull()
29