File size: 461 Bytes
a8dd534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# 1. Start Ollama server in the background
echo "Starting Ollama server..."
ollama serve &

# 2. Wait a few seconds for it to boot up
sleep 5

# 3. Pull the specific model you want to use
# *** IMPORTANT: Change 'llama3' if your app uses a different model! ***
echo "Pulling the Ollama model..."
ollama pull llama3

# 4. Start your Streamlit app
echo "Starting Streamlit..."
streamlit run fresh_app_v2.py --server.port=7860 --server.address=0.0.0.0