Spaces:
Runtime error
Runtime error
# Fail if any of the commands below fail. | |
set -e | |
# Check if the HUGGINGFACE_TOKEN is set at runtime | |
echo "Checking if HUGGINGFACE_TOKEN is set at runtime..." | |
if [ -z "${HUGGINGFACE_TOKEN}" ]; then | |
echo "HUGGINGFACE_TOKEN is not set at runtime." | |
# Exit if no token is found, or handle the case appropriately. | |
exit 1 | |
else | |
echo "HUGGINGFACE_TOKEN is set at runtime." | |
fi | |
# Your existing commands to start the server | |
lilac hf-docker-start | |
gunicorn lilac.server:app \ | |
--bind 0.0.0.0:5432 \ | |
--preload -k uvicorn.workers.UvicornWorker \ | |
--timeout 120 | |