File size: 202 Bytes
aae182e
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from huggingface_hub import HfApi
api = HfApi()
api.upload_file(
    path_or_fileobj="README.md",
    path_in_repo="README.md",
    repo_id="REPO_ID",
    revision="revision111",
    repo_type="model"
)