Spaces:
Runtime error
Runtime error
Download entrypoint.sh from Modrik-Team/Modrik: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/Modrik-Team/Modrik/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/Modrik-Team/Modrik/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/Modrik-Team/Modrik/resolve/main/entrypoint.sh
332 Bytes
| mkdir -p index | |
| if [ ! -f index/labor_law.index ]; then | |
| echo "Building FAISS index..." | |
| python -m scripts.ingest_labor_law | |
| fi | |
| echo "Pre-warming embedding model..." | |
| python -c "from core.vector_store import load_from_disk, _get_model; load_from_disk(); _get_model()" | |
| exec streamlit run app.py --server.address=0.0.0.0 | |