ollama-webui / init.sh
ruslanmv's picture
Update init.sh
a1a0220
raw
history blame
No virus
379 Bytes
#!/bin/bash
which ollama
# Start Ollama in the background.
/usr/local/bin/ollama serve &
# Record Process ID.
pid=$!
# Pause for Ollama to start.
sleep 5
echo "🔴 Retrieve LLAMA3 model..."
/usr/local/bin/ollama pull llama3
echo "🟢 Done!"
# Wait for Ollama process to finish.
wait $pid
# Start the Python application
echo "Starting Python application..."
python ./run.py