Spaces:
Build error
Build error
# Start ollama server | |
echo "Starting ollama server" | |
ollama serve & | |
# Wait for the ollama server to start | |
echo "Waiting for ollama server to start..." | |
while ! nc -z localhost 11434; do | |
sleep 1 | |
done | |
echo "ollama server started" | |
# Pull the phi3 model | |
echo "Pulling phi3 model" | |
ollama pull phi3 | |
# Wait for the model to be pulled | |
echo "Waiting for model to be pulled..." | |
while ! ls /.ollama/models/phi3 > /dev/null 2>&1; do | |
sleep 1 | |
done | |
echo "Model pulled successfully" | |
# Run the start_app.sh script | |
bash start_app.sh |