Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
cxumol
/
CoverPilot
like
7
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
05f62db
CoverPilot
/
app
/
_hf.py
cxumol
tune for hugging face space
e2121e2
about 1 year ago
raw
Copy download link
history
blame
Safe
186 Bytes
import
os
from
huggingface_hub
import
HfApi
HF_TOKEN = os.environ.get(
"HF_TOKEN"
,
None
)
REPO_ID = os.environ.get(
"REPO_ID"
,
None
)
HF =
None
if
HF_TOKEN:
HF = HfApi(token=HF_TOKEN)