CoolFace
Apppublic

fdgdfvb/sad

sourceHugging Facedeepfloyd-if-licenseupdated 1y agoView on Hugging Face
0likes
hf.sh31 linesDownload Raw Back to root
1#!/bin/bash2 3echo "Initializing datadir..."4 5# Create dir if not existed in HF persistent storage6if [ ! -d "${GSK_HOME}" ]7then8  # Create HOME9  mkdir -p "${GSK_HOME}"10  # Create frontend run dir11  mkdir -p "${GSK_HOME}/run/nginx"12fi13 14if [ ! -z "${GISKARD_LICENSE}" ]15then16  # Use new license if env set17  echo "${GISKARD_LICENSE}" > "${GISKARD_HOME}/license.lic"18fi19 20echo "Detecting demo Giskard Space..."21 22if [ ! -z "${SPACE_ID}" ] && [ "${DEMO_SPACE_ID}" == "${SPACE_ID}" ]23then24  # Generate GISKARD_DEFAULT_API_KEY in demo space instead of set from Secrets25  export GISKARD_DEFAULT_API_KEY=gsk-$(cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-28} | head -n 1)26fi27 28echo "Starting supervisord..."29 30exec supervisord -c "${GSK_DIST_PATH}/supervisord.conf"31