PyxiLabs commited on
Commit
be4c0da
·
verified ·
1 Parent(s): 6c6c988

Rename pull-model.sh to ollama.sh

Browse files
Files changed (1) hide show
  1. pull-model.sh → ollama.sh +4 -3
pull-model.sh → ollama.sh RENAMED
@@ -1,9 +1,10 @@
1
  #!/bin/sh
 
2
  # Start Ollama in the background
 
 
3
  ollama serve &
4
  # Wait for the server to start
5
  sleep 5
6
  # Pull the model
7
- ollama pull all-minilm
8
- # Stop the background server
9
- kill %1
 
1
  #!/bin/sh
2
+ source /app/venv/bin/activate
3
  # Start Ollama in the background
4
+ # Starting server
5
+ echo "Starting Ollama server"
6
  ollama serve &
7
  # Wait for the server to start
8
  sleep 5
9
  # Pull the model
10
+ ollama pull all-minilm