small_model / upload_file.pyt
volodymyrs's picture
Upload folder using huggingface_hub
8e85c37
raw
history blame contribute delete
202 Bytes
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"
)