# Data Deleted when i run my app

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-deleted-when-i-run-my-app%2F115477%3E%5C
**Category:** Spaces\
**Created:** [November 4, 2024, 12:26am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-deleted-when-i-run-my-app%2F115477 "2024-11-04T00:26:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [November 4, 2024, 12:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-deleted-when-i-run-my-app%2F115477%2F2 "2024-11-04T00:41:08Z")

</div>

HF’s Spaces is newly created each time it is started, so that is normal. If you want to save your data, you need to consider the means below.

> **[Disk usage on Spaces · Hugging Face](https://huggingface.co/docs/hub/spaces-storage)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> [@Persistent storage who can access?](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-storage-who-can-access%2F108027%2F4)%3A
>
> Hi @ADalsrehy If you want to save your data into a huggingface dataset instead you can use a commit scheduler. These are some methods proposed by wauplin to push your data (I have hot patched his space in here [Space to Dataset Saver - a Hugging Face Space by not-lain](https://huggingface.co/spaces/not-lain/space_to_dataset_saver) ) save as json import json from datetime import datetime from pathlib import Path from uuid import uuid4 import gradio as gr from huggingface\_hub import CommitScheduler JSON\_DATASET\_DIR = Path("json\_dataset") JSON\_DATASET\_DIR…

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-deleted-when-i-run-my-app%2F115477)._
