Spaces:
Runtime error
Runtime error
| # entrypoint.sh — boot the FinAgent Space. | |
| # | |
| # 1) Hydrate the Chroma vector store onto the persistent /data mount by | |
| # downloading it from the HF Dataset repo (finagent/bootstrap.py). This runs | |
| # once: after the first boot the data is on the mount and the download is | |
| # skipped. Keeping the data in a Dataset repo (not the Space repo) keeps the | |
| # Space under HF's 1 GB repo limit. | |
| # 2) Start uvicorn. | |
| set -e | |
| echo "[entrypoint] Ensuring Chroma vector store is present …" | |
| python -m finagent.bootstrap | |
| exec uvicorn finagent.api.main:app --host 0.0.0.0 --port "${PORT:-7860}" --workers 1 | |