Download entrypoint.sh from grimshaw/neuapi: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/grimshaw/neuapi/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/grimshaw/neuapi/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/grimshaw/neuapi/resolve/main/entrypoint.sh
578 Bytes
| set -e | |
| export PHONEMIZER_ESPEAK_LIBRARY=${PHONEMIZER_ESPEAK_LIBRARY:-/usr/lib/x86_64-linux-gnu/libespeak-ng.so.1} | |
| export ESPEAK_DATA_PATH=${ESPEAK_DATA_PATH:-/usr/lib/x86_64-linux-gnu/espeak-ng-data} | |
| if [ "${NEUTTS_PREDOWNLOAD_MODELS:-false}" = "true" ]; then | |
| echo "Pre-downloading models..." | |
| python -m docker.scripts.download_models | |
| fi | |
| echo "Starting NeuTTS-FastAPI server on port ${NEUTTS_PORT:-7860}..." | |
| exec uvicorn api.src.main:app \ | |
| --host "${NEUTTS_HOST:-0.0.0.0}" \ | |
| --port "${NEUTTS_PORT:-7860}" \ | |
| --workers 1 \ | |
| --log-level "info" | |