Otherwise, an exception is raised asking the user to explicitly set `local_path`. In any case, if `path_in_repo` is not
set, files are uploaded at the root of the repo.  
For more details about the CLI upload command, please refer to the [CLI guide](./cli#huggingface-cli-upload).