Download startup.sh from Samagra07/prod-api: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/Samagra07/prod-api/resolve/main/startup.sh
- Command line
-
hf download hf://spaces/Samagra07/prod-api/startup.sh
-
curl -L -o startup.sh https://huggingface.co/spaces/Samagra07/prod-api/resolve/main/startup.sh
332 Bytes
| echo "Cloning private repository..." | |
| git clone https://${GITLAB_DEPLOY_USER}:${GITLAB_DEPLOY_TOKEN}@gitlab.com/${GITLAB_USERNAME}/${GITLAB_REPO}.git repo | |
| cd repo | |
| echo "Installing dependencies..." | |
| pip install -r requirements.txt | |
| echo "Starting FastAPI..." | |
| uvicorn app:app --host 0.0.0.0 --port 7860 --no-access-log |