Spaces:
Sleeping
Sleeping
File size: 479 Bytes
ca2863a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
import sys
import subprocess
from dotenv import load_dotenv
load_dotenv()
HF_TOKEN = os.getenv("HF") or os.getenv("HUGGINGFACE_TOKEN") or os.getenv("HUGGINGFACE_HUB_TOKEN")
if not HF_TOKEN:
print("ERROR: No HF token found in environment (.env). Set HF=<your token>")
sys.exit(1)
"""
ARCHIVED: create_space_and_push.py
This helper was useful during initial development but is not required inside
the Space repository. Kept here as an archive placeholder.
"""
|