How to download files from HF spaces
### System Info

google colab 

### Who can help?

@sanchit-gandhi @rock

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

i tried:
```
from huggingface_hub import hf_hub_download,hf_hub_url
# model_path  = hf_hub_download(repo_id="xinyu1205/recognize-anything", filename="tag2text_swin_14m.pth",  local_dir = "/content")
```
but throws an error repo not present


### Expected behavior

download the file
Hi @andysingal, 

There is a typo in the repo_id. The correct command is: 

```
model_path  = hf_hub_download(repo_id="xinyu1205/recognize_anything_model", filename="tag2text_swin_14m.pth",  local_dir = "/content")
```

If you receive an error that a repo doesn't exist, the best thing to do is check directly on the hub for the repo and file name. <|||||>The file exists in the space

On Thu, Aug 3, 2023 at 15:41 amyeroberts ***@***.***> wrote:

> Hi @andysingal <https://github.com/andysingal>,
>
> There is a typo in the repo_id. The correct command is:
>
> model_path  = hf_hub_download(repo_id="xinyu1205/recognize_anything_model", filename="tag2text_swin_14m.pth",  local_dir = "/content")
>
> If you receive an error that a repo doesn't exist, the best thing to do is
> check directly on the hub for the repo and file name.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/25280#issuecomment-1663711815>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AE4LJNPJ7VV53GDNHXAUTCLXTN2N7ANCNFSM6AAAAAA3CJWHSU>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
<|||||>If downloading from the space, then you should specify the repo type in the `hf_hub_download` command

```
model_path  = hf_hub_download(repo_id="xinyu1205/recognize-anything", filename="tag2text_swin_14m.pth",  local_dir = "/content", repo_type="space")
```