RAG-Test / start.sh
Nielo47's picture
Update space
d6d3dff
raw
history blame
287 Bytes
#!/bin/bash
# Start Ollama in foreground so Docker sees it as PID 1
ollama serve &
# Quick health‑check loop (≲ 12 s total) rather than long pulls
for i in {1..6}; do
if ollama list >/dev/null 2>&1; then
break
fi
sleep 2
done
# Launch your Gradio app
python app.py