Abhishek Thakur
commited on
Commit
·
603e0a6
1
Parent(s):
9e10e0f
use user token in api
Browse files- competitions/create.py +1 -1
competitions/create.py
CHANGED
@@ -169,7 +169,7 @@ def _create(
|
|
169 |
|
170 |
logger.info(f"Creating competition: {competition_name}")
|
171 |
|
172 |
-
api = HfApi()
|
173 |
api.create_repo(
|
174 |
repo_id=f"{organization}/{competition_name}",
|
175 |
repo_type="dataset",
|
|
|
169 |
|
170 |
logger.info(f"Creating competition: {competition_name}")
|
171 |
|
172 |
+
api = HfApi(token=user_token)
|
173 |
api.create_repo(
|
174 |
repo_id=f"{organization}/{competition_name}",
|
175 |
repo_type="dataset",
|