Spaces:
Sleeping
Sleeping
File size: 379 Bytes
bf44eec aa4981d a1a0220 bf44eec a1a0220 bf44eec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/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
|