File size: 1,022 Bytes
06e66d0
 
5657a09
 
6bf6c69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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