please god work
This commit is contained in:
19
entrypoint.sh
Normal file
19
entrypoint.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
MODEL_DIR="${MODEL_DIR:-/data}"
|
||||
|
||||
echo "Checking model directory: $MODEL_DIR"
|
||||
if [ -z "$(ls -A "$MODEL_DIR" 2>/dev/null)" ]; then
|
||||
echo "Model directory is empty. Downloading GLaDOS model..."
|
||||
python /app/download_model.py --output-dir "$MODEL_DIR"
|
||||
else
|
||||
echo "Model files found in $MODEL_DIR"
|
||||
ls -la "$MODEL_DIR"
|
||||
fi
|
||||
|
||||
echo "Starting Wyoming GLaDOS TTS server..."
|
||||
exec python -m wyoming_glados \
|
||||
--model-dir "$MODEL_DIR" \
|
||||
--uri "${URI:-tcp://0.0.0.0:10200}" \
|
||||
--device "${DEVICE:-cpu}"
|
||||
Reference in New Issue
Block a user