Spaces:
Sleeping
Sleeping
File size: 539 Bytes
fe3046d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/env bash
set -euo pipefail
mkdir -p "${LABEL_STUDIO_BASE_DATA_DIR:-/data}"
label-studio start \
--host "${LABEL_STUDIO_HOST:-0.0.0.0}" \
--port "${LABEL_STUDIO_PORT:-7860}" \
--data-dir "${LABEL_STUDIO_BASE_DATA_DIR:-/data}" \
--username "${LABEL_STUDIO_USERNAME:-admin@example.com}" \
--password "${LABEL_STUDIO_PASSWORD:-password}" \
--user-token "${LABEL_STUDIO_USER_TOKEN:-rca-admin-token}" \
--no-browser &
server_pid=$!
python /opt/rca_label_studio/scripts/bootstrap_label_studio.py
wait "$server_pid"
|