Spaces:
Sleeping
Sleeping
File size: 264 Bytes
b3c94ce e7addf3 b3c94ce 16eff4c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash
ollama serve &
while ! nc -z localhost 11434; do
echo "⏳ Waiting for Ollama to start..."
sleep 1
done
ollama pull nomic-embed-text:latest
ollama pull llama3.1:8b-instruct-q4_0 || true
exec flask --app src/app run --host=0.0.0.0 --port=$PORT
|