File size: 420 Bytes
d1974ba
 
 
 
 
 
 
 
 
697548f
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from huggingface_hub import HfApi
api = HfApi()

model_id = "rajivmehtapy/gguf-collections"
api.create_repo(model_id, exist_ok=True, repo_type="model")
api.upload_file(
    path_or_fileobj="AutoCoder_S_6.gguf",
    path_in_repo="AutoCoder_S_6.gguf",
    repo_id=model_id,
)
# uncomment to upload folder

# api.upload_folder(
#     repo_id=model_id,
#     folder_path="./References",
#     path_in_repo="/References",
# )