💭

【Huggingface】 アクセスがはじかれた!?

2024/12/27に公開
huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-676d715a-07df4d106931843276e6a189;77a7fd8d-290d-4bb0-88f9-2a2a40a800c8)

403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository..
Cannot access content at: https://huggingface.co/stabilityai/stable-diffusion-3.5-large/resolve/main/model_index.json.
Make sure your token has the correct permissions.

The above exception was the direct cause of the following exception:
(略)
huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

このエラーが出た場合、トークンの設定をいじる必要があるかもしれません。

https://huggingface.co/settings/tokens

もしかすると、トークン作成のとき、

Read以外を選んでいた可能性があります。

Readに設定をし、再度試してみてください!

Discussion