holy-script commited on
Commit
593be97
·
verified ·
1 Parent(s): bd036b8

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +4 -4
entrypoint.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/bash
2
 
3
  # Starting Ollama server
4
- echo "Starting server"
5
  ollama serve &
6
 
7
  # Give Ollama some time to initialize
@@ -15,9 +15,9 @@ for m in "${MODELS[@]}"; do
15
  sleep 5
16
  done
17
 
18
- # Start the app
19
- echo "Starting app.py"
20
- python3 /app.py &
21
 
22
  # Keep the container running
23
  wait
 
1
  #!/bin/bash
2
 
3
  # Starting Ollama server
4
+ echo "Starting Ollama server..."
5
  ollama serve &
6
 
7
  # Give Ollama some time to initialize
 
15
  sleep 5
16
  done
17
 
18
+ # Start the Streamlit app
19
+ echo "Starting Streamlit app..."
20
+ streamlit run /app.py --server.port 7860 --server.address 0.0.0.0 &
21
 
22
  # Keep the container running
23
  wait