File size: 524 Bytes
15b9cac
 
 
 
 
 
 
 
 
 
bdc38c0
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Fail if any of the commands below fail.
set -e

lilac hf-docker-start
gunicorn lilac.server:app \
  --bind 0.0.0.0:5432 \
  --preload -k uvicorn.workers.UvicornWorker \
  --timeout 120

#!/bin/bash

# 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."
else
    echo "HUGGINGFACE_TOKEN is set at runtime."
fi

# The rest of your script to start your application