Once you've created a repository with [`create_repo`], you can upload a file to your repository using [`upload_file`].  
Specify the path of the file to upload, where you want to upload the file to in the repository, and the name of the repository you want to add the file to. Depending on your repository type, you can optionally set the repository type as a `dataset`, `model`, or `space`.  
```py
>>> from huggingface_hub import HfApi
>>> api = HfApi()
>>> api.upload_file(