Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
cxumol
/
CoverPilot
like
5
Running
App
Files
Files
Community
6770dec
CoverPilot
/
app
/
_hf.py
cxumol
tune for hugging face space
e2121e2
8 months 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)