Use the [`upload_file`] function to add a file to your newly created repository. You
need to specify:  
1. The path of the file to upload.
2. The path of the file in the repository.
3. The repository id of where you want to add the file.  
```py
>>> from huggingface_hub import HfApi
>>> api = HfApi()
>>> api.upload_file(
...     path_or_fileobj="/home/lysandre/dummy-test/README.md",
...     path_in_repo="README.md",
...     repo_id="lysandre/test-model",
... )
```