Spaces:
Runtime error
Runtime error
File size: 469 Bytes
dcd128b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from huggingface_hub import snapshot_download
import os
HF_REPO = os.getenv("HF_REPO_ID", "DarkSting/tea_backend")
HF_TOKEN = os.getenv("HF_TOKEN", None) # needed if repo is private
print(f"Downloading files from {HF_REPO}...")
snapshot_download(
repo_id=HF_REPO,
repo_type="model", # or "dataset" depending on where you uploaded
local_dir="/app", # downloads into /app matching your structure
)
print("Download complete.") |