danghungithp's picture
Create start.sh
3154263 verified
raw
history blame
261 Bytes
#!/bin/bash
echo "Starting Ollama..."
ollama serve &
echo "Waiting for Ollama to be ready..."
until curl -s http://localhost:11434 > /dev/null; do
echo "Ollama not ready yet, waiting..."
sleep 1
done
echo "Ollama is ready, starting app.py..."
python3 app.py