ztestzz / tmp.py
lainlives's picture
Upload folder using huggingface_hub
1e277b1 verified
raw
history blame contribute delete
311 Bytes
import os
from huggingface_hub import HfApi
# Initialize the API
api = HfApi()
HF_TOKEN = os.getenv("HF_TOKEN")
# Upload a local folder to a Hugging Face repo
api.upload_folder(
folder_path="/app/llama.cpp/build/bin/",
repo_id="lainlives/llama.cpp",
repo_type="dataset",
commit_message="Init"
)