Spaces:
Sleeping
Sleeping
Download entrypoint.sh from mrfirdauss/Ollama-API: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/mrfirdauss/Ollama-API/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/mrfirdauss/Ollama-API/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/mrfirdauss/Ollama-API/resolve/main/entrypoint.sh
303 Bytes
| # Start Ollama server in the background | |
| ollama serve & | |
| # Wait for the server to be ready | |
| while ! nc -z localhost 7860; do | |
| echo "Waiting for Ollama server to start..." | |
| sleep 1 | |
| done | |
| # Pull the model | |
| echo "Pulling the model..." | |
| ollama pull qwen3:4b | |
| # Keep the container running | |
| wait |