Make gated model easier available

#12
by Monty21 - opened

Hello Sebastian,
first of all, thanks for your nice work!
The only thing I got stuck on was that I needed the Hugging Face API key - it's easy in the browser, but I wanted it in the python script (basically the example).

It's quite simple, I guess HF already had to resolve this before:
HF_TOKEN=hf_NotGonnaTellYou
...
print("Downloading and applying German patch...")
checkpoint_path = hf_hub_download(repo_id=MODEL_REPO, filename=T3_CHECKPOINT_FILE, token=HF_TOKEN)

Keep up the good work!

Sign up or log in to comment