MCPcopy
hub / github.com/bigcode-project/starcoder / hf_login

Function hf_login

chat/utils.py:61–65  ·  view source on GitHub ↗

Login to HuggingFace Hub if HF_TOKEN is defined in the environment

()

Source from the content-addressed store, hash-verified

59
60
61def hf_login():
62 """Login to HuggingFace Hub if HF_TOKEN is defined in the environment"""
63 hf_token = os.getenv("HF_TOKEN")
64 if hf_token is not None:
65 login(token=hf_token)

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected