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" | |
) |
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" | |
) |