small_dir_upload / upload_file.py
volodymyrs's picture
Upload folder using huggingface_hub
6b980c5
raw
history blame
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"
)