Pyannote.speaker_diarization giving 401 Client Error
Hi,I created a user access token with write permissions. Using that token and able to use the model pipeline = Pipeline.from_pretrained(“pyannote/speaker-diarization”, use_auth_token=access_token). But I am getting the following Error.raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:https://huggingface.co/pyannote/segmentation/resolve/2022.07/pytorch_model.bin
2022-10-28T19:32:04Z
I have been getting a variety of errors when trying to get this model the past ~24 hours. I’m going to keep trying periodically, will report back if things go green.
2022-10-28T22:00:54Z
EDIT@artificialintelligen@smarterbizomkarI was able to fix this by accepting the terms atpyannote/segmentation · Hugging FaceI’m also getting the error in a Google Colab notebook when using a write access token (though a 403 error instead of 401).HTTPError: 403 Client Error: Forbidden for url: 
https://huggingface.co/pyannote/segmentation/resolve/2022.07/pytorch_model.binI tried creating new tokens (both read and write) with no luck. This was working yesterday, for the record.
2022-10-29T02:49:55Z
I had the same problemTraceback (most recent call last):
  File "/home/dg/anaconda3/envs/pyannote/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 213, in REDACTED_TOKEN_for_status
    response.raise_for_status()
  File "/home/dg/anaconda3/envs/pyannote/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/pyannote/segmentation/resolve/2022.07/pytorch_model.binanyone else know how to fix it?
2022-10-29T04:10:17Z
@ZpadgerI edited my post to give a fix
2022-10-29T16:32:07Z
taylorbell:I was able to fix this by accepting the terms atpyannote/segmentation · Hugging Facethis fixed it for me, thanks!
2022-11-03T12:19:51Z
I also get an authentification error:huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error: Repository Not Found for url:https://huggingface.co/pyannote/segmentation/resolve/2022.07/pytorch_model.bin. If the repo is private, make sure you are authenticated.however i only get it at one computer, even though the code and authentification token are exactly the sameany idea why it works differently on different machines?thank you
2022-11-16T22:03:11Z
I also get the authentication error, even after accepting the terms atpyannote/segmentation · Hugging Faceand providing an access token.Any ideas on how to fix this?
2022-11-29T12:58:11Z
Even I had the same problem. I followed the below steps to solve the problem.Update the PyAnnote version to ‘2.1.1’ using ‘pip install --upgrade pyannote.audio’visit “pyannote/speaker-diarization · Hugging Face” and accept user conditionsvisit “pyannote/segmentation · Hugging Face” and accept user conditionsGenerate, only ‘READ’ token using your Huggingface account settings–>access TokensLogin to Huggingface through the command line using the command “huggingface-cli login”. This will ask you the token created in step 4 and then append this token under your ‘.huggingface’ folder.From now, you may either instantiate the ‘use_auth_token’ option of the pipeline with your token or give only the ‘True’ option.
2023-02-16T17:25:38Z
Thank you. This is what solved my issue. I needed to login with: huggingface-cli login
2023-10-25T16:05:30Z
I’ve accepted the terms for all of pyannote’s models and still getting this error. See below.image3208×1492 462 KB
2023-11-04T16:45:15Z
Hi, By any chance have you fixed this issue?