File size: 677 Bytes
4d55dfd
 
28a74b2
4d55dfd
 
 
28a74b2
 
 
 
 
 
 
4d55dfd
 
 
28a74b2
4d55dfd
 
 
a041d1f
 
 
 
 
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
#!/bin/bash
# Start Ollama in the background
# ollama serve &

# Wait for Ollama to be ready (check if port 11434 is open)
echo "Waiting for Ollama to start..."
# timeout 30s bash -c "until curl -s http://localhost:11434 > /dev/null; do sleep 1; done"
# if [ $? -eq 0 ]; then
#    echo "Ollama is running."
#else
#    echo "Failed to start Ollama within 30 seconds."
#    exit 1
#fi

# Pull the model (llama3.2)
echo "Pulling llama3.2 model..."
#ollama pull llama3.2:1b

# Start Streamlit
echo "Starting Streamlit..."
streamlit run app.py \
    --server.headless true \
    --server.enableCORS false \
    --server.enableXsrfProtection false \
    --server.fileWatcherType none