Skip to content

Commit 641dea0

Browse files
authored
Update Space to dataset storage docs (#952)
* Update Space to dataset storage docs * foo
1 parent 41220f0 commit 641dea0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/hub/spaces-sdks-docker.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ The data written on disk is lost whenever your Docker Space restarts, unless you
136136
If you opt-in for a persistent storage upgrade, you can use the `/data` directory to store data. This directory is mounted on a persistent volume, which means that the data written in this directory will be persisted across restarts.
137137

138138
<Tip warning="{true}">
139+
139140
At the moment, `/data` volume is only available at runtime, i.e. you cannot use `/data` during the build step of your Dockerfile.
141+
140142
</Tip>
141143

142-
You can also use our Datasets Hub for specific cases, where you can store state and data in a git LFS repository. You can find an example of persistence [here](https://huggingface.co/spaces/julien-c/persistent-data), which uses the [`huggingface_hub` library](https://huggingface.co/docs/huggingface_hub/index) for programmatically uploading files to a dataset repository.
144+
You can also use our Datasets Hub for specific cases, where you can store state and data in a git LFS repository. You can find an example of persistence [here](https://huggingface.co/spaces/Wauplin/space_to_dataset_saver), which uses the [`huggingface_hub` library](https://huggingface.co/docs/huggingface_hub/index) for programmatically uploading files to a dataset repository. This Space example along with [this guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/upload#scheduled-uploads) will help you define which solution fits best your data type.
143145

144146
Finally, in some cases, you might want to use an external storage solution from your Space's code like an external hosted DB, S3, etc.
145147

docs/hub/spaces-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Additional information about billing can be found in the [dedicated Hub-wide sec
5353

5454
If you need to persist data that lives longer than your Space, you could use a [dataset repo](./datasets).
5555

56-
You can find an example of persistence [here](https://huggingface.co/spaces/julien-c/persistent-data), which uses the [`huggingface_hub` library](https://huggingface.co/docs/huggingface_hub/index) for programmatically uploading files to a dataset repository.
56+
You can find an example of persistence [here](https://huggingface.co/spaces/Wauplin/space_to_dataset_saver), which uses the [`huggingface_hub` library](https://huggingface.co/docs/huggingface_hub/index) for programmatically uploading files to a dataset repository. This Space example along with [this guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/upload#scheduled-uploads) will help you define which solution fits best your data type.
5757

5858
Visit the [`datasets` library](https://huggingface.co/docs/datasets/index) documentation and the [`huggingface_hub` client library](https://huggingface.co/docs/huggingface_hub/index)
5959
documentation for more information on how to programmatically interact with dataset repos.

0 commit comments

Comments
 (0)