How to save video from a HF space
I want to save the output of a model and retrive it even when the app is going off line. I have tried the persistent data option that is supposed to save to /data but then there is no way to access it.is there any easy solution to save and retrive the output?
2024-10-21T22:27:33Z
I recommend the method of storing the data in a data set because it is free and robust.Persistent storage who can access?SpacesHi@ADalsrehyIf 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 hereSpace to Dataset Saver - a Hugging Face Space by not-lain)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…
2024-10-22T07:48:10Z
ok then I will try this then