burtenshaw commited on
Commit
606a083
·
1 Parent(s): 0c270aa

use env hf_token for file upload

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -112,6 +112,7 @@ def upload_certificate_to_hub(username: str, certificate_img) -> str:
112
  path_in_repo=path_in_repo,
113
  repo_id=repo_id,
114
  repo_type="dataset",
 
115
  )
116
 
117
  # Construct the URL to the image
 
112
  path_in_repo=path_in_repo,
113
  repo_id=repo_id,
114
  repo_type="dataset",
115
+ token=os.getenv("HF_TOKEN"),
116
  )
117
 
118
  # Construct the URL to the image