Spaces:
Runtime error
Runtime error
Merge pull request #47 from huggingface/fix-autotrain-auth
Browse files
utils.py
CHANGED
@@ -25,7 +25,7 @@ HUB_TASK_TO_AUTOTRAIN_TASK = {v: k for k, v in AUTOTRAIN_TASK_TO_HUB_TASK.items(
|
|
25 |
LOGS_REPO = "evaluation-job-logs"
|
26 |
|
27 |
|
28 |
-
def get_auth_headers(token: str, prefix: str = "
|
29 |
return {"Authorization": f"{prefix} {token}"}
|
30 |
|
31 |
|
|
|
25 |
LOGS_REPO = "evaluation-job-logs"
|
26 |
|
27 |
|
28 |
+
def get_auth_headers(token: str, prefix: str = "Bearer"):
|
29 |
return {"Authorization": f"{prefix} {token}"}
|
30 |
|
31 |
|