Skip to content

Commit

Permalink
add a diagram about hf:// URLs (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
severo authored Jun 28, 2024
1 parent 922068c commit 6ff6bff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/en/guides/hf_file_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ The [`HfFileSystem`] can be used with any library that integrates `fsspec`, prov
hf://[<repo_type_prefix>]<repo_id>[@<revision>]/<path/in/repo>
```

<div class="flex justify-center">
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/huggingface_hub/hf_urls.png"/>
</div>

The `repo_type_prefix` is `datasets/` for datasets, `spaces/` for spaces, and models don't need a prefix in the URL.

Some interesting integrations where [`HfFileSystem`] simplifies interacting with the Hub are listed below:
Expand Down

0 comments on commit 6ff6bff

Please sign in to comment.