Spaces:
Paused
Paused
Download start.sh from RAILassistant/RAIL_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/RAILassistant/RAIL_Assistant/resolve/main/start.sh
- Command line
-
hf download hf://spaces/RAILassistant/RAIL_Assistant/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/RAILassistant/RAIL_Assistant/resolve/main/start.sh
366 Bytes
| set -e | |
| echo "== Avvio container ==" | |
| # indicizzazione automatica solo se mancano i file indice | |
| if [ ! -f /app/index.npz ] || [ ! -f /app/index_meta.json ]; then | |
| echo "Indice non trovato: eseguo ingest in modalità fast..." | |
| python /app/ingest.py --no-estimate --fast | |
| fi | |
| echo "== Lancio API ==" | |
| exec uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860} | |