Download entrypoint.sh from bbbipul/albumify: direct link, hf CLI and curl.
- Browser
- Download file 508 Bytes
-
https://huggingface.co/spaces/bbbipul/albumify/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/bbbipul/albumify/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/bbbipul/albumify/resolve/main/entrypoint.sh
508 Bytes
| # Starting server | |
| echo "Starting server" | |
| ollama serve & | |
| OLLAMA_HOST=127.0.0.1:12435 ollama serve & | |
| sleep 1 | |
| # Splitting the models by comma and pulling each | |
| IFS=',' read -ra MODELS <<< "$model" | |
| for m in "${MODELS[@]}"; do | |
| echo "Pulling $m" | |
| ollama pull "$m" | |
| sleep 5 | |
| # echo "Running $m" | |
| # ollama run "$m" | |
| # No need to sleep here unless you want to give some delay between each pull for some reason | |
| done | |
| # Keep the script running to prevent the container from exiting | |
| wait | |