Spaces:
Runtime error
Runtime error
FROM heartexlabs/label-studio:hf-latest | |
ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true | |
################################################################################ | |
# | |
# How to Enable Persistent Storage for Label Studio in Hugging Face Spaces | |
# ------------------------------------------------------------------------ | |
# | |
# By default this space stores all project configuration and data annotations | |
# in local storage with sqlite. If the space is reset, all configuration and | |
# annotation data in the space will be lost. You can enable configuration | |
# persistence through one of two methods: | |
# | |
# 1) Enabling Hugging Face Persistent Storage for saving project and annotation | |
# settings, as well as local task storage. | |
# 2) Connecting an external Postgres database for saving project and annotation | |
# settings, and cloud by connecting cloud storage for tasks. | |
# | |
################################################################################ | |
ENV STORAGE_PERSISTENCE=1 | |
CMD exec label-studio --host=$SPACE_HOST | |