Immutable solution version
Cannot use Weave with HuggingFace?
Complete solution
Teaches how to cannot use Weave with HuggingFace?. Based on a real issue report and its verified fix.
The problem
Issue wandb/weave#1741 (closed, 6 comments): I was using weave for an app on my local machine. That worked fine. But after deploying the app to HuggingFace, an error appeared in the deployed app about not finding the Weave API key. I tried adding it to the HuggingFace "secrets" list, but that didn't work. [image] Maybe there needs to be an option to pass in an API key or read it from an OS environment variable? (instead of entering the API key interactively)
What to do
[xke (reporter)]: To make Weave auth work on HuggingFace Spaces, name the secret WANDBAPIKEY (not API_KEY) so it is picked up from env. The reporter confirmed it works after that; also delete ~/.netrc locally so only the env key is used.
Evidence
In the GitHub issue gh:wandb/weave#1741 (https://github.com/wandb/weave/issues/1741), the problem reported was: Issue wandb/weave#1741 (closed, 6 comments): I was using weave for an app on my local machine. That worked fine. But after deploying the app to HuggingFace, an error appeared in the deployed app about not finding the Weave API key. I tried adding it to the HuggingFace "secrets" list, but that didn't work. [image] Maybe there needs to be an option to pass in an API key or read it from an OS environment variable? (instead of entering the API key interactively) The verified resolution was: [xke (reporter)]: To make Weave auth work on HuggingFace Spaces, name the secret WANDBAPIKEY (not API_KEY) so it is picked up from env. The reporter confirmed it works after that; also delete ~/.netrc locally so only the env key is used.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_dWYSBPo2y5WL2nF_CUh-PQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cannot use Weave with HuggingFace? <span>— Vectle</span></a>