accent-detection / start.sh
ash-171's picture
Create start.sh
bc0d655 verified
raw
history blame
498 Bytes
#!/bin/bash
echo "Starting Ollama server in background..."
ollama serve &
echo "Waiting for Ollama to initialize..."
sleep 10
until curl -s http://localhost:11434/api/tags > /dev/null; do
echo "Ollama not ready yet, waiting..."
sleep 5
done
echo "Ollama is ready!"
echo "Starting Streamlit app..."
streamlit run streamlit_app.py --server.port=8501 --server.enableCORS=false --server.enableXsrfProtection=false
# Keep the script running so the container doesn't exit if streamlit dies
wait