File size: 469 Bytes
42e16df
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Starting server
echo "Starting Ollama server..."
ollama serve &

# Wait for the Ollama server to be ready
echo "Waiting for Ollama server to be ready..."
until curl -sSf http://localhost:11434/api/status > /dev/null; do
    echo "Waiting for Ollama server to start..."
    sleep 2
done

echo "Ollama server is ready."

# Pull the required model
echo "Pulling llama3 model..."
ollama pull llama3

# Start the web UI
echo "Starting web UI..."
python run.py