lewtun HF staff commited on
Commit
159fb33
1 Parent(s): 5e6c620

Fix bearer for AutoTrain projects

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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 = "autonlp"):
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