Cannot access gated repo

#2
by NickyNicky - opened

I have access to the model since I filled out the form, but how do I implement it?
Do I have access and do I already have the token as added to this library (get_pretrained_model)?
image.png

!pip install huggingface_hub
!python -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('token_hf')"

get_pretrained_model

I'm also having this issue. I can't find where the code authenticates you; does it? Quite new to Python as well.

@CoolScratcher and @NickyNicky check alreay share the Space on Zero GPU so from that you get some insights ,

@NickyNicky Generate a HF access token and use huggingface-cli login

@NickyNicky Generate a HF access token and use huggingface-cli login

Then we will get ;
image.png

I can access it from browser and i dont wanna edit the source files. Is there any solution or workaround for this error? Tried with proxy, tried multiple times.

Got the same problem, any solutions yet?

I was able to use from huggingface_hub import login
help(login)
But now I get a different error with run_gradio.py
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Need some accepted way to load model locally. Right now, I noticed a new folder named blob appeared in ~/.cache/huggingface/hub/models--stabilityai--stable-audio-open-1.0
Inside blob/ I found a file somethingsomething.incomplete that was increasing in size.
I stopped run_gradio.py and copied the already-downloaded model.safetensors to blobs/somethingsomething.incomplete
Re-ran run_gradio.pyand now I get the feeling it would work. Except, my video card doesn't have 'nuff memory (4 GiB).

@vats make sure your access token has access to read stabilityai/stable-audio-open-1.0. I generated a finegrained token and had to edit the permissions and specifically add the repo

use export/set HUGGING_FACE_HUB_TOKEN={your huggingface token}

get a key with the right permissions.
for python:

import os
WANDB_API_KEY = "e25452a211e677731ae0ea1ca4csausagehead"
os.environ["WANDB_API_KEY"] = WANDB_API_KEY

Shell Commands
Unix (Bash): export WANDB_API_KEY="e25452a211e677731ae0ea1ca4csausagehead"
Windows CMD: set WANDB_API_KEY=e25452a211e677731ae0ea1ca4csausagehead
Windows PowerShell: $env:WANDB_API_KEY = "e25452a211e677731ae0ea1ca4csausagehead"

Sign up or log in to comment