TEXTY / app /start.sh
Akash297's picture
Create start.sh
75b1163 verified
Raw History Blame Contribute Delete
318 Bytes
#!/bin/bash
# Wait for Ollama to start
echo "Waiting for Ollama to start..."
until curl --silent --fail http://localhost:7860; do
echo "Waiting for Ollama to be ready..."
sleep 5
done
echo "Ollama is ready, starting Flask app..."
# Start the Flask app with Gunicorn
gunicorn -w 2 -b 0.0.0.0:7860 app.dip:app