Spaces:
Sleeping
Sleeping
echo "Starting Ollama server..." | |
ollama serve & | |
echo "Waiting for Ollama server to be active..." | |
while [ "$(ollama list | grep 'NAME')" == "" ]; do | |
sleep 1 | |
done | |
ollama pull $1 | |