Spaces:
Sleeping
Sleeping
File size: 549 Bytes
c9e8946 a5ae591 82ed2fb 5d73a5f d602b9c a5ae591 bd036b8 591179b 364b592 591179b a5ae591 21e1e06 aaeaa09 bd036b8 a5ae591 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#!/bin/bash
# Activate virtual environment
source /venv/bin/activate
# Start Ollama server on port 7860
echo "Starting Ollama server on port 7860..."
ollama serve &
# Give Ollama some time to initialize
sleep 2
# Pull models
IFS=',' read -ra MODELS <<< "$model"
for m in "${MODELS[@]}"; do
echo "Pulling $m"
ollama pull "$m"
sleep 5
done
# # Start the Streamlit app on port 8501
# echo "Starting Streamlit app on port 8501..."
# streamlit run /app.py --server.port 8501 --server.address 0.0.0.0 &
# Keep the container running
wait
|