``` from huggingface_hub import HfApi api = HfApi() api.upload_file( path_or_fileobj="/path/to/local/folder/README.md", path_in_repo="README.md", repo_id="asifhugs/Subnet8", repo_type="model", ) ```