File size: 311 Bytes
1e277b1
1f6c6d1
 
 
 
1e277b1
1f6c6d1
 
ef8eee9
1f6c6d1
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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"
)