holy-script commited on
Commit
5d73a5f
·
verified ·
1 Parent(s): 82ed2fb

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +6 -6
entrypoint.sh CHANGED
@@ -3,9 +3,9 @@
3
  # Activate virtual environment
4
  source /venv/bin/activate
5
 
6
- # Start Ollama server
7
- echo "Starting Ollama server..."
8
- ollama serve &
9
 
10
  # Give Ollama some time to initialize
11
  sleep 2
@@ -18,9 +18,9 @@ for m in "${MODELS[@]}"; do
18
  sleep 5
19
  done
20
 
21
- # Start the Streamlit app
22
- echo "Starting Streamlit app..."
23
- streamlit run /app.py --server.port 7860 --server.address 0.0.0.0 &
24
 
25
  # Keep the container running
26
  wait
 
3
  # Activate virtual environment
4
  source /venv/bin/activate
5
 
6
+ # Start Ollama server on port 7860
7
+ echo "Starting Ollama server on port 7860..."
8
+ ollama serve --port 7860 &
9
 
10
  # Give Ollama some time to initialize
11
  sleep 2
 
18
  sleep 5
19
  done
20
 
21
+ # Start the Streamlit app on port 8501
22
+ echo "Starting Streamlit app on port 8501..."
23
+ streamlit run /app.py --server.port 8501 --server.address 0.0.0.0 &
24
 
25
  # Keep the container running
26
  wait