Spaces:
Sleeping
Sleeping
| # Start Ollama in the background | |
| ollama serve & | |
| # Record the Process ID so we can wait for it later | |
| pid=$! | |
| # Wait for Ollama to wake up | |
| sleep 5 | |
| # Pull the model (Change phi3 to llama3 if you want) | |
| echo "🔴 Pulling model..." | |
| ollama pull phi3 | |
| echo "🟢 Model ready!" | |
| # Wait for the process to finish | |
| wait $pid |