python调用huggingface的相关模型报错Could not download ‘pyannote/speaker-diarization‘ pipeline 解决方法

代码信息:

Could not download 'pyannote/speaker-diarization' pipeline.
It might be because the pipeline is private or gated so make
sure to authenticate. Visit https://hf.co/settings/tokens to
create your access token and retry with:

   >>> Pipeline.from_pretrained('pyannote/speaker-diarization',
   ...                          use_auth_token=YOUR_AUTH_TOKEN)

If this still does not work, it might be because the pipeline is gated:
visit https://hf.co/pyannote/speaker-diarization to accept the user conditions.

解决办法:
1.访问huggingface上的模型页面,接受使用条款,例如:
python调用huggingface的相关模型报错Could not download ‘pyannote/speaker-diarization‘ pipeline 解决方法_第1张图片
登录后提交一下信息即可。

2.获取token,将获取到的token放到代码中去
python调用huggingface的相关模型报错Could not download ‘pyannote/speaker-diarization‘ pipeline 解决方法_第2张图片
python调用huggingface的相关模型报错Could not download ‘pyannote/speaker-diarization‘ pipeline 解决方法_第3张图片

问题解决。

你可能感兴趣的:(AI,python,数据库,开发语言,huggingface)